aboutsummaryrefslogtreecommitdiff
path: root/js/button.js
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-08-06 18:29:54 -0700
committerMark Otto <[email protected]>2013-08-06 18:29:54 -0700
commit402dbfb6171e18aa44e19429e796169f02b0adf7 (patch)
treeaeb0cef7cc1b04988307a0ef79b07fbe2d7d197c /js/button.js
parent7e19b6b02ccd5417a6c2d3d418c08219773f1112 (diff)
parent41bdd1a4823feb8b46b2fccfeec3e9c5057a0665 (diff)
downloadbootstrap-402dbfb6171e18aa44e19429e796169f02b0adf7.tar.xz
bootstrap-402dbfb6171e18aa44e19429e796169f02b0adf7.zip
Merge branch '3.0.0-wip' into bs3_theme
Conflicts: dist/css/bootstrap.min.css
Diffstat (limited to 'js/button.js')
-rw-r--r--js/button.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/button.js b/js/button.js
index ae5602fc2..fc73b555f 100644
--- a/js/button.js
+++ b/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')
}