aboutsummaryrefslogtreecommitdiff
path: root/dist/js/bootstrap.js
diff options
context:
space:
mode:
authorfat <[email protected]>2013-08-02 15:13:12 -0700
committerfat <[email protected]>2013-08-02 15:13:12 -0700
commitf6cec812a6a0a4488fc675bbe7d02cfe7d1f7a2d (patch)
tree1caa86fe1a3349d6c3e235b84e9fd2c6ce2ef0cf /dist/js/bootstrap.js
parente969d2ff18214c8d3b2730155d933c0acd614344 (diff)
downloadbootstrap-f6cec812a6a0a4488fc675bbe7d02cfe7d1f7a2d.tar.xz
bootstrap-f6cec812a6a0a4488fc675bbe7d02cfe7d1f7a2d.zip
fixes #8957
Diffstat (limited to 'dist/js/bootstrap.js')
-rw-r--r--dist/js/bootstrap.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/dist/js/bootstrap.js b/dist/js/bootstrap.js
index 51dc23904..6c560b292 100644
--- a/dist/js/bootstrap.js
+++ b/dist/js/bootstrap.js
@@ -219,7 +219,9 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
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')
}