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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a2f5668861a6986e8e108034f4044e358ae88f19
4
- data.tar.gz: b4ab1506c7d2aa46974f1d9bd8ed541828f17a69
3
+ metadata.gz: 6a3f46b4a617bb177e498058a8353743a735a935
4
+ data.tar.gz: a5d11d7473856a4ddefb743a3cbaf39973a85da4
5
5
  SHA512:
6
- metadata.gz: 999eb0a6b343c062ef30cca1025f4d04c1f45d27d7f79170f0a43121089a1ea3b3c2536db81186e6658381be694f3d33fb04c3d8c81de188ac2110154ac43562
7
- data.tar.gz: 9e3cd8f29f9d57563a98cf4b865e9a9a36a2e316da153574fe82b6f8e9458ad77428b73434e024f93f1b38b88bebf12687102d72b6ec6cbdf54d52fb4e20e936
6
+ metadata.gz: d304a8d18a8f80e6ed4d1e3229a4c2b42e74e3e5aad4aa01753e84ca077e50a29c8cd990e481e1dc2aa77a584623f26d0f56deb97867a6c90376a30b99404e17
7
+ data.tar.gz: 2ba79c94751e203407ae57c0f2bfd97db58b85de8445f70269416d8ab6f3b8603b6959e871437aece316788b2ff881257af33619c9257fc509af77741c4518b2
@@ -1,3 +1,3 @@
1
1
  module EpiJs
2
- VERSION = "1.0.8"
2
+ VERSION = "1.0.9"
3
3
  end
@@ -20,17 +20,14 @@
20
20
 
21
21
  toShow.show()
22
22
  toShow.trigger('visibility.show')
23
- $(':input:not([data-visibility-map-no-auto-enable])', toShow).prop('disabled', false)
24
-
23
+
25
24
  toHide.hide()
26
25
  toHide.trigger('visibility.hide')
27
- $(':input', toHide).prop('disabled', true)
28
-
26
+
29
27
  hideAll: ->
30
28
  @allFields.hide()
31
29
  @allFields.trigger('visibility.hide')
32
- $(':input', @allFields).prop('disabled', true)
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: epi_js
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shuo Chen