bootstrap-switch-rails 3.3.4 → 3.3.5

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: 779d0e2012b1caec540bfed6d18523ddda4bc97fc924894f4456f1a5bc94ef32
4
- data.tar.gz: 56fd08e4635c807c4c2e0e5e749cb33b5195d7a9f15306cfef1a3146c13fa124
3
+ metadata.gz: 168a079ce87f548c5f992b7d52a4545da207e34ad8af7f35e6d713386331ff4c
4
+ data.tar.gz: 0a260428a22d25c16895ab5862e53d3444b7d69abfcf025c3b1e60cf656aadca
5
5
  SHA512:
6
- metadata.gz: 9b47fdb160c4a30bb66753410e77db031d74e928caf8b572cdc5210b177b88fdd446d517925995ba7b40cccd240f8e425cc0be1f831eda55ba687b9d187c609b
7
- data.tar.gz: 8ea6f6489f7de98ef02d71d269b9bea98c09835fadc114e82fced44c679a6877eff6e07a9fcd2a9f26cd760c7d8a152ee0e8f317401e5c30faeb94b691d2b05e
6
+ metadata.gz: c25b74d6c7cf787b9a135005ed094d1f2772beebefb297666bcdcd364317ddac569b0fad2ad37be9bff2196df6b9a8a06a806117a78d09c06ab48b47fdbc4c31
7
+ data.tar.gz: d6d0e8ee762bb07730c4a770f29eb55159ca7765650afe1fc32e2cfa5090e76b80b46e1d111ff4975630efefab1827a89c72adeb18c2bca9d79b308ded2c9a44
data/README.md CHANGED
@@ -51,7 +51,7 @@ See the [demo page](http://bootstrapswitch.site/examples.html) for examples how
51
51
  ## License
52
52
 
53
53
  * The [bootstrap-switch](http://bootstrapswitch.site/) plugin is licensed under the
54
- [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)
54
+ [MIT License](http://opensource.org/licenses/mit-license.html)
55
55
  * The [bootstrap-switch-rails](https://github.com/manuelvanrijn/bootstrap-switch-rails) project is
56
56
  licensed under the [MIT License](http://opensource.org/licenses/mit-license.html)
57
57
 
@@ -1,7 +1,7 @@
1
1
  module Bootstrap
2
2
  module Switch
3
3
  module Rails
4
- VERSION = "3.3.4"
4
+ VERSION = "3.3.5"
5
5
  end
6
6
  end
7
7
  end
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * bootstrap-switch - Turn checkboxes and radio buttons into toggle switches.
3
3
  *
4
- * @version v3.3.4
4
+ * @version v3.3.5
5
5
  * @homepage https://bttstrp.github.io/bootstrap-switch
6
6
  * @author Mattia Larentis <mattia@larentis.eu> (http://larentis.eu)
7
- * @license Apache-2.0
7
+ * @license MIT
8
8
  */
9
9
 
10
10
  (function (global, factory) {
@@ -393,7 +393,8 @@
393
393
  args[_key] = arguments[_key];
394
394
  }
395
395
 
396
- if (_this9.options.onSwitchChange.apply(element, args) === false) {
396
+ var changeState = _this9.options.onSwitchChange.apply(element, args);
397
+ if (changeState === false) {
397
398
  if (_this9.$element.is(':radio')) {
398
399
  $('[name="' + _this9.$element.attr('name') + '"]').trigger('previousState.bootstrapSwitch', true);
399
400
  } else {
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * bootstrap-switch - Turn checkboxes and radio buttons into toggle switches.
3
3
  *
4
- * @version v3.3.4
4
+ * @version v3.3.5
5
5
  * @homepage https://bttstrp.github.io/bootstrap-switch
6
6
  * @author Mattia Larentis <mattia@larentis.eu> (http://larentis.eu)
7
- * @license Apache-2.0
7
+ * @license MIT
8
8
  */
9
9
 
10
10
  .clearfix {
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * bootstrap-switch - Turn checkboxes and radio buttons into toggle switches.
3
3
  *
4
- * @version v3.3.4
4
+ * @version v3.3.5
5
5
  * @homepage https://bttstrp.github.io/bootstrap-switch
6
6
  * @author Mattia Larentis <mattia@larentis.eu> (http://larentis.eu)
7
- * @license Apache-2.0
7
+ * @license MIT
8
8
  */
9
9
 
10
10
  .bootstrap-switch {
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
4
+ version: 3.3.5
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: 2018-07-12 00:00:00.000000000 Z
11
+ date: 2019-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -78,8 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
78
  - !ruby/object:Gem::Version
79
79
  version: '0'
80
80
  requirements: []
81
- rubyforge_project:
82
- rubygems_version: 2.7.7
81
+ rubygems_version: 3.0.3
83
82
  signing_key:
84
83
  specification_version: 4
85
84
  summary: an asset gemification of the bootstrap-switch plugin