Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Emanuele authored Apr 13, 2019
2 parents 81b69a4 + b93af46 commit ff80a28
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 16 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "components/bootstrap-switch",
"description": "Turn checkboxes and radio buttons into toggle switches.",
"version": "3.3.4",
"version": "3.3.5",
"type": "component",
"keywords": [
"bootstrap",
Expand Down
4 changes: 2 additions & 2 deletions dist/css/bootstrap2/bootstrap-switch.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**
* bootstrap-switch - Turn checkboxes and radio buttons into toggle switches.
*
* @version v3.3.4
* @version v3.3.5
* @homepage https://bttstrp.github.io/bootstrap-switch
* @author Mattia Larentis <[email protected]> (http://larentis.eu)
* @license Apache-2.0
* @license MIT
*/

.clearfix {
Expand Down
4 changes: 2 additions & 2 deletions dist/css/bootstrap2/bootstrap-switch.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/css/bootstrap3/bootstrap-switch.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**
* bootstrap-switch - Turn checkboxes and radio buttons into toggle switches.
*
* @version v3.3.4
* @version v3.3.5
* @homepage https://bttstrp.github.io/bootstrap-switch
* @author Mattia Larentis <[email protected]> (http://larentis.eu)
* @license Apache-2.0
* @license MIT
*/

.bootstrap-switch {
Expand Down
4 changes: 2 additions & 2 deletions dist/css/bootstrap3/bootstrap-switch.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions dist/js/bootstrap-switch.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/**
* bootstrap-switch - Turn checkboxes and radio buttons into toggle switches.
*
* @version v3.3.4
* @version v3.3.5
* @homepage https://bttstrp.github.io/bootstrap-switch
* @author Mattia Larentis <[email protected]> (http://larentis.eu)
* @license Apache-2.0
* @license MIT
*/

(function (global, factory) {
Expand Down Expand Up @@ -393,7 +393,8 @@
args[_key] = arguments[_key];
}

if (_this9.options.onSwitchChange.apply(element, args) === false) {
var changeState = _this9.options.onSwitchChange.apply(element, args);
if (changeState === false) {
if (_this9.$element.is(':radio')) {
$('[name="' + _this9.$element.attr('name') + '"]').trigger('previousState.bootstrapSwitch', true);
} else {
Expand Down
Loading

0 comments on commit ff80a28

Please sign in to comment.