jquery_drapper 0.0.11 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,10 +8,10 @@
|
|
8
8
|
throw "$.drapper plugin hasn't been required This plugin depends on 'jquery.drapper' plugin. See https://github.com/aratak/jquery_drapper/ for details." if $.fn.drapper is undefined
|
9
9
|
|
10
10
|
class Popup
|
11
|
-
constructor: (@
|
11
|
+
constructor: (@button_selector, @element_selector, @cover)->
|
12
12
|
@cover = $(@cover)
|
13
|
-
@button = $(@cover).find @
|
14
|
-
@element = $(@cover).find @
|
13
|
+
@button = $(@cover).find @button_selector
|
14
|
+
@element = $(@cover).find @element_selector
|
15
15
|
@hide()
|
16
16
|
@bindEvents()
|
17
17
|
|
@@ -22,12 +22,15 @@
|
|
22
22
|
false
|
23
23
|
|
24
24
|
show: ->
|
25
|
+
@hideAnotherPopups()
|
25
26
|
@element.show()
|
26
27
|
$('body').click => @hide()
|
27
28
|
|
29
|
+
hideAnotherPopups: ->
|
30
|
+
$(@button_selector).hide()
|
31
|
+
|
28
32
|
hide: ->
|
29
33
|
@element.hide()
|
30
|
-
;
|
31
34
|
|
32
35
|
|
33
36
|
$.drappers['popup'] = ->
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jquery_drapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06-
|
12
|
+
date: 2012-06-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|
16
|
-
requirement: &
|
16
|
+
requirement: &70177404916520 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -24,7 +24,7 @@ dependencies:
|
|
24
24
|
version: '5.0'
|
25
25
|
type: :runtime
|
26
26
|
prerelease: false
|
27
|
-
version_requirements: *
|
27
|
+
version_requirements: *70177404916520
|
28
28
|
description: Create some widget from 'input' source. Unobtrusive.
|
29
29
|
email:
|
30
30
|
- alexey@osipenko.in.ua
|