effective_bootstrap 0.6.2 → 0.6.3

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: 154c8e191ec03141827fc735f6246f8ff27f786af3c1e4c8bc6e377f1259e491
4
- data.tar.gz: d47e0bcbf5f6de9d78c59503a0322b0617a8f925ff8f31c2a5b3e5fc91ab974c
3
+ metadata.gz: 9b9005a23373f4237ec092831ef96be6896bc92045d20fb9ed1db71dd04b605b
4
+ data.tar.gz: 9c8fa6dc4323b5de88d203935c30310cf1aa5674ce99b7934c6babdad5ea4eed
5
5
  SHA512:
6
- metadata.gz: b335ec07ef0d394874f75c86871ccdc098b7ae1596635d8615b8277438669145667baaf199d202955fce5b809a1eca4506d54895482f798b480c40b7c871dc53
7
- data.tar.gz: 169bf98da00a9e65fa1f9edeab8921b5ec74ad654f2a344bcb3bd43f3e2a1dcf2cbfc16e0c2265c909cf720205104bc9d95b91f9994da58e68c1e7583805cbfe
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((inline? ? :label : :legend), options[:label]) do
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
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '0.6.2'.freeze
2
+ VERSION = '0.6.3'.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.6.2
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-15 00:00:00.000000000 Z
11
+ date: 2019-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails