bootstrap-switch-rails 3.3.1 → 3.3.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65788d9c96c3e4627274c3d1cb1851dc1cec2f12
|
4
|
+
data.tar.gz: 92086b29ad0ee921bbfb8754b68afa659eae4abc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04a8ed596de1d4f28ad34101d4dcc7a8d01c2eac77bdb1203117686a48c2197eeb47dcaeb34f6bd1bc2b9713b226a1d19fa5e2508c924c52b145c2aaa5b95722
|
7
|
+
data.tar.gz: 739c38b38a9340b9daf3aa62f374ec795145d269f1429420bc8a1a519f6bd95257161b9c09078f8de14127fb4f7086ba9f892732a87db3627575378612a05734
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* ========================================================================
|
2
|
-
* bootstrap-switch - v3.3.
|
2
|
+
* bootstrap-switch - v3.3.2
|
3
3
|
* http://www.bootstrap-switch.org
|
4
4
|
* ========================================================================
|
5
5
|
* Copyright 2012-2013 Mattia Larentis
|
@@ -27,7 +27,6 @@
|
|
27
27
|
var BootstrapSwitch;
|
28
28
|
BootstrapSwitch = (function() {
|
29
29
|
function BootstrapSwitch(element, options) {
|
30
|
-
var initInterval;
|
31
30
|
if (options == null) {
|
32
31
|
options = {};
|
33
32
|
}
|
@@ -110,19 +109,7 @@
|
|
110
109
|
if (this.options.indeterminate) {
|
111
110
|
this.$element.prop("indeterminate", true);
|
112
111
|
}
|
113
|
-
|
114
|
-
return function() {
|
115
|
-
if (_this.$wrapper.is(":visible")) {
|
116
|
-
_this._width();
|
117
|
-
_this._containerPosition(null, function() {
|
118
|
-
if (_this.options.animate) {
|
119
|
-
return _this.$wrapper.addClass("" + _this.options.baseClass + "-animate");
|
120
|
-
}
|
121
|
-
});
|
122
|
-
return window.clearInterval(initInterval);
|
123
|
-
}
|
124
|
-
};
|
125
|
-
})(this), 50);
|
112
|
+
this._init();
|
126
113
|
this._elementHandlers();
|
127
114
|
this._handleHandlers();
|
128
115
|
this._labelHandlers();
|
@@ -475,6 +462,31 @@
|
|
475
462
|
}, 50);
|
476
463
|
};
|
477
464
|
|
465
|
+
BootstrapSwitch.prototype._init = function() {
|
466
|
+
var init, initInterval;
|
467
|
+
init = (function(_this) {
|
468
|
+
return function() {
|
469
|
+
_this._width();
|
470
|
+
return _this._containerPosition(null, function() {
|
471
|
+
if (_this.options.animate) {
|
472
|
+
return _this.$wrapper.addClass("" + _this.options.baseClass + "-animate");
|
473
|
+
}
|
474
|
+
});
|
475
|
+
};
|
476
|
+
})(this);
|
477
|
+
if (this.$wrapper.is(":visible")) {
|
478
|
+
return init();
|
479
|
+
}
|
480
|
+
return initInterval = window.setInterval((function(_this) {
|
481
|
+
return function() {
|
482
|
+
if (_this.$wrapper.is(":visible")) {
|
483
|
+
init();
|
484
|
+
return window.clearInterval(initInterval);
|
485
|
+
}
|
486
|
+
};
|
487
|
+
})(this), 50);
|
488
|
+
};
|
489
|
+
|
478
490
|
BootstrapSwitch.prototype._elementHandlers = function() {
|
479
491
|
return this.$element.on({
|
480
492
|
"change.bootstrapSwitch": (function(_this) {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* ========================================================================
|
2
|
-
* bootstrap-switch - v3.3.
|
2
|
+
* bootstrap-switch - v3.3.2
|
3
3
|
* http://www.bootstrap-switch.org
|
4
4
|
* ========================================================================
|
5
5
|
* Copyright 2012-2013 Mattia Larentis
|
@@ -59,6 +59,7 @@
|
|
59
59
|
text-align: left;
|
60
60
|
overflow: hidden;
|
61
61
|
line-height: 8px;
|
62
|
+
z-index: 0;
|
62
63
|
-webkit-user-select: none;
|
63
64
|
-moz-user-select: none;
|
64
65
|
-ms-user-select: none;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/* ========================================================================
|
2
|
-
* bootstrap-switch - v3.3.
|
2
|
+
* bootstrap-switch - v3.3.2
|
3
3
|
* http://www.bootstrap-switch.org
|
4
4
|
* ========================================================================
|
5
5
|
* Copyright 2012-2013 Mattia Larentis
|
@@ -30,6 +30,7 @@
|
|
30
30
|
text-align: left;
|
31
31
|
overflow: hidden;
|
32
32
|
line-height: 8px;
|
33
|
+
z-index: 0;
|
33
34
|
-webkit-user-select: none;
|
34
35
|
-moz-user-select: none;
|
35
36
|
-ms-user-select: none;
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bootstrap-switch-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manuel van Rijn
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|