epi_js 1.0.3 → 1.0.4
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/option_filter.coffee +6 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b8aaf447c4e819ce3230a9a096ab5c4463fbbc7
|
4
|
+
data.tar.gz: a5c392f40bb87b94fb8d1669d9c0dcac40e08bec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f01788cc90958a81961afcc2987cc01bc72f399d38fb642c11120f35801e0592643acdfe4a713d543993c38a0df1e363401d3024d849089eca38b35f88f3883e
|
7
|
+
data.tar.gz: 307ca6f8ad98df3322b7ef95b8e61b9313b7abc106980a9e00cfee6d43cae2df507516ac5bf4c80dc8d51e2f91d0b2477dd8413be259aa92a89117c6804a0fe2
|
data/lib/epi_js/version.rb
CHANGED
@@ -15,9 +15,14 @@
|
|
15
15
|
disableEmpty = @disableEmpty
|
16
16
|
|
17
17
|
@filterTarget.each ->
|
18
|
+
$selected = $(':selected', $(this))
|
19
|
+
|
18
20
|
$toShow = $(this).data('option-filter-all-options').filter("[data-option-filter-value='#{valueSelected}'], :not([data-option-filter-value])")
|
19
21
|
|
20
|
-
$
|
22
|
+
unless $toShow.filter($selected).size() > 0
|
23
|
+
$(this).val('')
|
24
|
+
|
25
|
+
$(this).html($toShow).trigger('change.option-filter')
|
21
26
|
$(this).prop('disabled', disableEmpty and ($toShow.size() is 0))
|
22
27
|
|
23
28
|
$.fn.optionFilter = ->
|
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.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shuo Chen
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-05-
|
12
|
+
date: 2016-05-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|