rails-bootstrap-toggle-buttons 0.0.6 → 0.0.7
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 +7 -0
- data/vendor/assets/javascripts/bootstrap-toggle-buttons.js +8 -8
- metadata +6 -8
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: 9dc8def489cc447daa910b210346d52035fbd13a
|
4
|
+
data.tar.gz: bdd0858e2cf192eb5c9eeaeaf1e64b5b7253e849
|
5
|
+
!binary "U0hBNTEy":
|
6
|
+
metadata.gz: 083d884b60cdac0dc21c7d535351571e02ec58b7067419986154d6ca47db73e9c461ddb26642f3cb841211db8e3a73c2915464e2248d3e98fdf47e5be58c495a
|
7
|
+
data.tar.gz: 9f0c0be34cc5852fb77c5c15e6adbed418111528de5431fe29c614b0ba90d440df6e6f64fbe6e349c02033bbe4f406141d8625bd1f3eb69d8d423804f595f840
|
@@ -56,7 +56,7 @@
|
|
56
56
|
|
57
57
|
$div = $cb.wrap($('<div></div>')).parent();
|
58
58
|
$div.append($spanLeft);
|
59
|
-
$div.append($('<label></label>').
|
59
|
+
$div.append($('<label></label>').prop('for', $cb.prop('id') || ''));
|
60
60
|
$div.append($spanRight);
|
61
61
|
|
62
62
|
if ($cb.is(':checked'))
|
@@ -187,9 +187,9 @@
|
|
187
187
|
|
188
188
|
if (moving)
|
189
189
|
if (parseInt($(this).parent().css('left')) < -25)
|
190
|
-
$myCheckBox.
|
191
|
-
else $myCheckBox.
|
192
|
-
else $myCheckBox.
|
190
|
+
$myCheckBox.prop('checked', false);
|
191
|
+
else $myCheckBox.prop('checked', true);
|
192
|
+
else $myCheckBox.prop("checked", !$myCheckBox.is(":checked"));
|
193
193
|
|
194
194
|
$myCheckBox.trigger('change');
|
195
195
|
});
|
@@ -204,8 +204,8 @@
|
|
204
204
|
$(this).trigger('mouseup');
|
205
205
|
|
206
206
|
if (parseInt($(this).parent().css('left')) < -25)
|
207
|
-
$myCheckBox.
|
208
|
-
else $myCheckBox.
|
207
|
+
$myCheckBox.prop('checked', false);
|
208
|
+
else $myCheckBox.prop('checked', true);
|
209
209
|
|
210
210
|
$myCheckBox.trigger('change');
|
211
211
|
});
|
@@ -226,10 +226,10 @@
|
|
226
226
|
},
|
227
227
|
toggleState: function (skipOnChange) {
|
228
228
|
var $input = $(this).find('input:checkbox');
|
229
|
-
$input.
|
229
|
+
$input.prop('checked', !$input.is(':checked')).trigger('change', skipOnChange);
|
230
230
|
},
|
231
231
|
setState: function(value, skipOnChange) {
|
232
|
-
$(this).find('input:checkbox').
|
232
|
+
$(this).find('input:checkbox').prop('checked', value).trigger('change', skipOnChange);
|
233
233
|
},
|
234
234
|
status: function () {
|
235
235
|
return $(this).find('input:checkbox').is(':checked');
|
metadata
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-bootstrap-toggle-buttons
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.7
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Carlos Alexandro Becker
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-03-31 00:00:00.000000000 Z
|
13
12
|
dependencies: []
|
14
13
|
description: Just providing the bootstrap-toggle-buttons from https://github.com/nostalgiaz/bootstrap-toggle-buttons
|
15
14
|
into a gem.
|
@@ -20,32 +19,31 @@ extensions: []
|
|
20
19
|
extra_rdoc_files: []
|
21
20
|
files:
|
22
21
|
- lib/rails-bootstrap-toggle-buttons.rb
|
23
|
-
- vendor/assets/stylesheets/bootstrap-toggle-buttons.css
|
24
22
|
- vendor/assets/javascripts/bootstrap-toggle-buttons.js
|
23
|
+
- vendor/assets/stylesheets/bootstrap-toggle-buttons.css
|
25
24
|
- LICENSE.txt
|
26
25
|
- README.md
|
27
26
|
homepage: https://github.com/caarlos0/rails-bootstrap-toggle-buttons.git
|
28
27
|
licenses: []
|
28
|
+
metadata: {}
|
29
29
|
post_install_message:
|
30
30
|
rdoc_options: []
|
31
31
|
require_paths:
|
32
32
|
- lib
|
33
33
|
required_ruby_version: !ruby/object:Gem::Requirement
|
34
|
-
none: false
|
35
34
|
requirements:
|
36
35
|
- - ! '>='
|
37
36
|
- !ruby/object:Gem::Version
|
38
37
|
version: '0'
|
39
38
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
40
|
-
none: false
|
41
39
|
requirements:
|
42
40
|
- - ! '>='
|
43
41
|
- !ruby/object:Gem::Version
|
44
42
|
version: '0'
|
45
43
|
requirements: []
|
46
44
|
rubyforge_project:
|
47
|
-
rubygems_version:
|
45
|
+
rubygems_version: 2.0.0
|
48
46
|
signing_key:
|
49
|
-
specification_version:
|
47
|
+
specification_version: 4
|
50
48
|
summary: A simple gem for https://github.com/nostalgiaz/bootstrap-toggle-buttons
|
51
49
|
test_files: []
|