epi_js 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/epi_js/version.rb +1 -1
- data/vendor/assets/javascripts/visibility_map.coffee +9 -6
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a3f46b4a617bb177e498058a8353743a735a935
|
4
|
+
data.tar.gz: a5d11d7473856a4ddefb743a3cbaf39973a85da4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d304a8d18a8f80e6ed4d1e3229a4c2b42e74e3e5aad4aa01753e84ca077e50a29c8cd990e481e1dc2aa77a584623f26d0f56deb97867a6c90376a30b99404e17
|
7
|
+
data.tar.gz: 2ba79c94751e203407ae57c0f2bfd97db58b85de8445f70269416d8ab6f3b8603b6959e871437aece316788b2ff881257af33619c9257fc509af77741c4518b2
|
data/lib/epi_js/version.rb
CHANGED
@@ -20,17 +20,14 @@
|
|
20
20
|
|
21
21
|
toShow.show()
|
22
22
|
toShow.trigger('visibility.show')
|
23
|
-
|
24
|
-
|
23
|
+
|
25
24
|
toHide.hide()
|
26
25
|
toHide.trigger('visibility.hide')
|
27
|
-
|
28
|
-
|
26
|
+
|
29
27
|
hideAll: ->
|
30
28
|
@allFields.hide()
|
31
29
|
@allFields.trigger('visibility.hide')
|
32
|
-
|
33
|
-
|
30
|
+
|
34
31
|
getValue: ->
|
35
32
|
$.makeArray(@element.val())
|
36
33
|
|
@@ -51,6 +48,12 @@
|
|
51
48
|
$ ->
|
52
49
|
$('input[data-visibility-map]:checked, select[data-visibility-map]').setVisibility()
|
53
50
|
|
51
|
+
$(document.body).on('visibility.show', (e) ->
|
52
|
+
$(':input:not([data-visibility-map-no-auto-enable])', $(e.target)).prop('disabled', false)
|
53
|
+
).on('visibility.hide', (e) ->
|
54
|
+
$(':input', $(e.target)).prop('disabled', true)
|
55
|
+
)
|
56
|
+
|
54
57
|
$(document.body).on 'change', '[data-visibility-map]', (e) ->
|
55
58
|
$(this).setVisibility()
|
56
59
|
) jQuery
|