effective_bootstrap 0.11.18 → 0.11.19
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b37527409a84a7dcd2c26b1bd3264e9450a2c4782644e54108a14005d1f9e44
|
4
|
+
data.tar.gz: a250baf131c0e5549b391d61160c72674c081449dd7158fd732f5c30c91fc316
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a67fe0e30fecf152e3e3c980ec67c0f6ecddab3b4212429654d923e83571a3d93c2e72cddf433c737e847c6c7cf7a1044f266e32b57b62fa03c92c0b3e83bf8
|
7
|
+
data.tar.gz: 93a1be51fc431ef61a3ea4b36fe23c1979424570ccfca0b67adc86790e434064973b567da47456f6dd99f6a2cadc6ff39385e09bc4827db970e172f66b81d553
|
@@ -21,10 +21,8 @@ effectiveMatch = (params, data) ->
|
|
21
21
|
try text = $(data.text).text() if text.length == 0
|
22
22
|
text = data.text if text.length == 0
|
23
23
|
|
24
|
-
if
|
25
|
-
|
26
|
-
|
27
|
-
return null unless data.children?
|
24
|
+
return(data) if text.length > 0 && text.toLowerCase().indexOf(term) > -1
|
25
|
+
return(null) unless data.children?
|
28
26
|
|
29
27
|
# OptGroup mode
|
30
28
|
filteredChildren = []
|
@@ -33,8 +31,8 @@ effectiveMatch = (params, data) ->
|
|
33
31
|
# Text value
|
34
32
|
text = ''
|
35
33
|
try text = $(child.element.getAttribute('data-html')).text()
|
36
|
-
try text = $(
|
37
|
-
text =
|
34
|
+
try text = $(child.text).text() if text.length == 0
|
35
|
+
text = child.text if text.length == 0
|
38
36
|
|
39
37
|
filteredChildren.push(child) if text.toLowerCase().indexOf(term) > -1
|
40
38
|
)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_bootstrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.19
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|