Skip to content

Commit 576fe7d

Browse files
committed
Release 1.0.1. Added default_class option.
1 parent edf6a58 commit 576fe7d

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

bootstrap-checkbox.jquery.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"checkbox",
88
"switch"
99
],
10-
"version": "1.0.0",
10+
"version": "1.0.1",
1111
"author": {
1212
"name": "vsn4ik",
1313
"url": "https://github.com/vsn4ik"

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bootstrap-checkbox",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"authors": [
55
"vsn4ik"
66
],

dist/bootstrap-checkbox.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@
4444
this.$off.addClass('active ' + this.options.off_class);
4545
}
4646

47-
this.$buttons.not('.active').addClass('btn-default');
47+
this.$buttons.not('.active').addClass(this.options.default_class);
4848
},
4949
render: function() {
5050
this.$group.not(':focus').focus();
51-
this.$buttons.toggleClass('active btn-default');
51+
this.$buttons.toggleClass('active ' + this.options.default_class);
5252
this.$on.toggleClass(this.options.on_class);
5353
this.$off.toggleClass(this.options.off_class);
5454
},
@@ -81,6 +81,7 @@
8181
on: 'Yes',
8282
off: 'No',
8383
on_class: 'btn-success',
84-
off_class: 'btn-danger'
84+
off_class: 'btn-danger',
85+
default_class: 'btn-default'
8586
};
8687
})(window.jQuery);

dist/bootstrap-checkbox.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)