effective_bootstrap 1.26.1 → 1.26.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ceb3bba806853497fb5290b90df0d1ad27710099de47f927b99b0037f6ce13ce
4
- data.tar.gz: 8ac20f1907bdb52800c6330df1f36a51b36303bf05829c2a8f89b4a74d4c6002
3
+ metadata.gz: 389e8cbed1dd95393279010e52a2cb1c508ba89d52f9a4abac81f7a6025f5430
4
+ data.tar.gz: 510921c92e807b0c799ce7e73de810d73ac49db63eb31e7f3daa419f9736a0d6
5
5
  SHA512:
6
- metadata.gz: a9bd10a1395c70a946df7cc8367190c7b21a4fd6f6ba65030384a1810c6479922aa7c5194d9c59e90eef5c33005b1f4d8f4544c9f068d53eea40580a539eda05
7
- data.tar.gz: 2185a0c41f8063f37223ff1b10cc785da1d69656c400bf5fa14d424774b355a7643533987ed458a09bf9893f34ca971b474f2c249462e4c40c50e9bfdbc27c47
6
+ metadata.gz: f370b2f8d565cbd7fbda0edc54edc082d929e8232f115ca748469c75fbacfa677f4e567501fcfd5f3a10730a2f23552145be254b0e44eb25872016ff007fa30a
7
+ data.tar.gz: 91a92ede06446ccdd0dc85af79c0e5f9e529c6e99064017158a294180d8c561758fd4f487ea4977dc4d6f780c0e550d9f94d3480abf8abb9ff43a7fe93c0caee
@@ -48,11 +48,12 @@ syncDisabledRadioButtons = ($container) ->
48
48
  else
49
49
  $container = $element.closest('form,div.effective-datatables-filters')
50
50
 
51
- $affects = $container.find("input[name='#{options.name}'],select[name='#{options.name}'],input[name='#{options.name}[]']")
51
+ $affects = $container.find("input[name='#{options.name}'],select[name='#{options.name}'],select[name='#{options.name}[]'],input[name='#{options.name}[]']")
52
52
 
53
53
  $affects.on 'change dp.change', (event) ->
54
54
  $target = $(event.target)
55
- matches = ($target.val() == options.value)
55
+ selected = $target.val()
56
+ matches = if Array.isArray(selected) then selected.indexOf(options.value) != -1 else selected == options.value
56
57
 
57
58
  if $target.is("[type='checkbox']")
58
59
  if $target.attr('name').indexOf('[]') == -1
@@ -37,7 +37,11 @@ module Effective
37
37
  first = object.try(args.first)
38
38
  second = args.second
39
39
 
40
- first == second || first.to_s == second.to_s || Array(first) == Array(second) || Array(first.to_s) == Array(second.to_s)
40
+ first == second ||
41
+ first.to_s == second.to_s ||
42
+ Array(first) == Array(second) ||
43
+ Array(first.to_s) == Array(second.to_s) ||
44
+ Array(first).any? { |value| value.to_s == second.to_s }
41
45
  end
42
46
 
43
47
  end
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '1.26.1'.freeze
2
+ VERSION = '1.26.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.26.1
4
+ version: 1.26.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect