summaryrefslogtreecommitdiff
path: root/bower_components/bootstrap/js/button.js
diff options
context:
space:
mode:
Diffstat (limited to 'bower_components/bootstrap/js/button.js')
-rwxr-xr-x[-rw-r--r--]bower_components/bootstrap/js/button.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/bower_components/bootstrap/js/button.js b/bower_components/bootstrap/js/button.js
index 539e9fea..fc73b555 100644..100755
--- a/bower_components/bootstrap/js/button.js
+++ b/bower_components/bootstrap/js/button.js
@@ -56,7 +56,9 @@
var $parent = this.$element.closest('[data-toggle="buttons"]')
if ($parent.length) {
- var $input = this.$element.find('input').prop('checked', !this.$element.hasClass('active'))
+ var $input = this.$element.find('input')
+ .prop('checked', !this.$element.hasClass('active'))
+ .trigger('change')
if ($input.prop('type') === 'radio') $parent.find('.active').removeClass('active')
}
@@ -72,7 +74,7 @@
$.fn.button = function (option) {
return this.each(function () {
var $this = $(this)
- var data = $this.data('button')
+ var data = $this.data('bs.button')
var options = typeof option == 'object' && option
if (!data) $this.data('bs.button', (data = new Button(this, options)))