effective_bootstrap 0.6.2 → 0.6.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b9005a23373f4237ec092831ef96be6896bc92045d20fb9ed1db71dd04b605b
|
4
|
+
data.tar.gz: 9c8fa6dc4323b5de88d203935c30310cf1aa5674ce99b7934c6babdad5ea4eed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ca3da5d79cd994b052cd83671ed4c2014c9971a74a7a8cad0be9c519ad50d798c4ca8312d97f2fba2a02309283644cfe6dcd45b53e2cb90184055f03330d7a1
|
7
|
+
data.tar.gz: 8e2e4319c55e37571c400b8e24f2636c5e2352604e809691a9286c68d28836c5a7cae4ba1b15326bffb81b94368a053017dfb8d7e7ad5cfdb102450adb6c6a81
|
@@ -22,7 +22,7 @@ $(document).on 'select2:open', (event) ->
|
|
22
22
|
# For tabbing through
|
23
23
|
# https://stackoverflow.com/questions/20989458/select2-open-dropdown-on-focus
|
24
24
|
$(document).on 'focus', '.select2-selection.select2-selection--single', (event) ->
|
25
|
-
$(event.currentTarget).closest('.select2-container').siblings('select:enabled').select2('open')
|
25
|
+
$(event.currentTarget).closest('.select2-container').siblings('select:enabled:not(.disable-open-on-focus)').select2('open')
|
26
26
|
|
27
27
|
$(document).on 'select2:closing', (event) ->
|
28
28
|
$(event.target).data('select2').$selection.one('focus focusin', (event) -> event.stopPropagation())
|
@@ -55,9 +55,9 @@ module Effective
|
|
55
55
|
|
56
56
|
text = (options[:label].delete(:text) || (object.class.human_attribute_name(name) if object) || BLANK).html_safe
|
57
57
|
|
58
|
-
content_tag(
|
58
|
+
content_tag(:label, options[:label]) do
|
59
59
|
text + content_tag(:div, class: 'effective-checks-actions text-muted') do
|
60
|
-
unless disabled?
|
60
|
+
unless disabled? || !actions?
|
61
61
|
link_to('Select All', '#', 'data-effective-checks-all': true) + ' - ' + link_to('Select None', '#', 'data-effective-checks-none': true)
|
62
62
|
end
|
63
63
|
end
|
@@ -89,6 +89,11 @@ module Effective
|
|
89
89
|
end
|
90
90
|
end
|
91
91
|
|
92
|
+
def actions? # default true
|
93
|
+
return @actions unless @actions.nil?
|
94
|
+
@actions = (options.delete(:actions) != false)
|
95
|
+
end
|
96
|
+
|
92
97
|
end
|
93
98
|
end
|
94
99
|
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.6.
|
4
|
+
version: 0.6.3
|
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: 2019-07-
|
11
|
+
date: 2019-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|