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: d8b2aa82be991ed7702172237571e299677c91af45bce9e213a11962b6086f97
4
- data.tar.gz: e45e9fbab8c28c712159c669ac3733f464e9c481078458f5fca975f28d2dab06
3
+ metadata.gz: 4b37527409a84a7dcd2c26b1bd3264e9450a2c4782644e54108a14005d1f9e44
4
+ data.tar.gz: a250baf131c0e5549b391d61160c72674c081449dd7158fd732f5c30c91fc316
5
5
  SHA512:
6
- metadata.gz: 6d03aee0bb092f9a2f9c18dd5fd9be2e66668dc481a3728abb6aa814d7242b6c81568bad67156b1b7421746fd17c890238ece19f74c363bdc04c891b2ed682ec
7
- data.tar.gz: 1ecd48015673e4684c8f9e1886b433fe658ee42541fb09199a5b65c6ff0cc4adb830417d9907b1ba45735410ca56bd05219e7685249c6dfdbf2087e773403d03
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(text.length > 0)
25
- if text.toLowerCase().indexOf(term) > -1 then return(data) else return(null)
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 = $(data.text).text() if text.length == 0
37
- text = data.text if text.length == 0
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
  )
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '0.11.18'.freeze
2
+ VERSION = '0.11.19'.freeze
3
3
  end
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.18
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: 2022-12-16 00:00:00.000000000 Z
11
+ date: 2023-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails