epi_js 1.0.7 → 1.0.8

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: 37dc7deefa6e36e0bafb0b26b1d507e3fdad5ef1
4
- data.tar.gz: 283a85d30cbe3566dcd8cd301acab10da9509a80
3
+ metadata.gz: a2f5668861a6986e8e108034f4044e358ae88f19
4
+ data.tar.gz: b4ab1506c7d2aa46974f1d9bd8ed541828f17a69
5
5
  SHA512:
6
- metadata.gz: e64236d2e02cd752aa215ad2251dc3e2e31e72d3ccafda501e123cbc4a47311b2fe48d6805e0d474b38ca964eba4ff140d44fc49242b6659dbb1ccfc2ede5025
7
- data.tar.gz: 296440dd31ffe3ca8cc3f16ff0b1e50e7c58e53e2e2bf5f30a291f12f755375db88d843ef03fc5912d36ae9b2601751f9c3c5e533b386f31d28249403bb23fcd
6
+ metadata.gz: 999eb0a6b343c062ef30cca1025f4d04c1f45d27d7f79170f0a43121089a1ea3b3c2536db81186e6658381be694f3d33fb04c3d8c81de188ac2110154ac43562
7
+ data.tar.gz: 9e3cd8f29f9d57563a98cf4b865e9a9a36a2e316da153574fe82b6f8e9458ad77428b73434e024f93f1b38b88bebf12687102d72b6ec6cbdf54d52fb4e20e936
@@ -1,3 +1,3 @@
1
1
  module EpiJs
2
- VERSION = "1.0.7"
2
+ VERSION = "1.0.8"
3
3
  end
@@ -20,13 +20,16 @@
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)
23
24
 
24
25
  toHide.hide()
25
26
  toHide.trigger('visibility.hide')
26
-
27
+ $(':input', toHide).prop('disabled', true)
28
+
27
29
  hideAll: ->
28
30
  @allFields.hide()
29
31
  @allFields.trigger('visibility.hide')
32
+ $(':input', @allFields).prop('disabled', true)
30
33
 
31
34
  getValue: ->
32
35
  $.makeArray(@element.val())
@@ -48,12 +51,6 @@
48
51
  $ ->
49
52
  $('input[data-visibility-map]:checked, select[data-visibility-map]').setVisibility()
50
53
 
51
- $(document.body).on 'visibility.show', ->
52
- $(':input:not([data-visibility-map-no-auto-enable])', $(this)).prop('disabled', false)
53
-
54
- $(document.body).on 'visibility.hide', ->
55
- $(':input', $(this)).prop('disabled', true)
56
-
57
54
  $(document.body).on 'change', '[data-visibility-map]', (e) ->
58
55
  $(this).setVisibility()
59
56
  ) 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.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shuo Chen