effective_bootstrap 0.1.3 → 0.1.4

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
  SHA1:
3
- metadata.gz: 2cf064531c9f92430b1eb084efa9e89b02895d7b
4
- data.tar.gz: 8bd29c26b2339ce6ed0743838d154b008f4bc397
3
+ metadata.gz: b9a288ad87b19d24f4b6e1975e47c1d3df2cb808
4
+ data.tar.gz: b799987fbaecf619052a29fbf6af042e3df6c196
5
5
  SHA512:
6
- metadata.gz: ca9bf1383910645adfd8ca4cbccc4d514d193d15467c72513c09224b84d288148c4b7834c70ffde2d3ba53e23f003b906a2af2cb19e3c1ac8d92e802403f44f7
7
- data.tar.gz: 34f52f7f6b55aa80a55ae863ea8bf7d2b591b9e298aa7f612d4f5a6d05d2b2156d2f0009e227ad4a822633a8aa735ecb753cdc5482bccda46e1f9f58a0bb80be
6
+ metadata.gz: 76fc29549c4bc7cb4f5a6ae2b3f98eb159d8433f7ca504faea8d702f7204de98e180eb60aa36883db0cf43a3c66d5d7aeb3057723111c1567bb5cf1960fb3a8d
7
+ data.tar.gz: 273ec9ef33c9e1cbade35f16fd150ba19fbe8897046f5af4e2312bb7b1910fcc87c72a9495a87b4c6b3ea1a853c68bf11b207155150167dcd507aa66ede1b38a
@@ -310,7 +310,7 @@ module Effective
310
310
  end
311
311
  end
312
312
 
313
- if options[:input][:disabled] || form_disabled?
313
+ if disabled? || form_disabled?
314
314
  options[:input][:disabled] = 'disabled'
315
315
  end
316
316
 
@@ -359,6 +359,10 @@ module Effective
359
359
  @builder.readonly
360
360
  end
361
361
 
362
+ def disabled?
363
+ options.dig(:input, :disabled).present?
364
+ end
365
+
362
366
  def form_disabled?
363
367
  @builder.disabled
364
368
  end
@@ -50,7 +50,9 @@ module Effective
50
50
 
51
51
  content_tag((inline? ? :label : :legend), options[:label]) do
52
52
  text + content_tag(:div, class: 'effective-checks-actions text-muted') do
53
- link_to('Select All', '#', 'data-effective-checks-all': true) + ' - ' + link_to('Select None', '#', 'data-effective-checks-none': true)
53
+ unless disabled?
54
+ link_to('Select All', '#', 'data-effective-checks-all': true) + ' - ' + link_to('Select None', '#', 'data-effective-checks-none': true)
55
+ end
54
56
  end
55
57
  end
56
58
  end
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '0.1.3'.freeze
2
+ VERSION = '0.1.4'.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.1.3
4
+ version: 0.1.4
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: 2018-08-03 00:00:00.000000000 Z
11
+ date: 2018-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails