diff options
| author | Mark Otto <[email protected]> | 2012-02-19 14:54:53 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-02-19 14:54:53 -0800 |
| commit | adbbf17ee4a241b14503289e6726fc52acefc8a4 (patch) | |
| tree | ac7cc57aca1e989f6b72f0311660b7d2a458884a /docs/assets/js | |
| parent | 16d12396d0f1f352280ae195ac60a15e7e95d666 (diff) | |
| parent | 532242e626c36beb3985e23f3f119373db21262a (diff) | |
| download | bootstrap-adbbf17ee4a241b14503289e6726fc52acefc8a4.tar.xz bootstrap-adbbf17ee4a241b14503289e6726fc52acefc8a4.zip | |
Merge branch '2.0.2-wip' of github.com:twitter/bootstrap into 2.0.2-wip
Conflicts:
docs/assets/bootstrap.zip
Diffstat (limited to 'docs/assets/js')
| -rw-r--r-- | docs/assets/js/bootstrap-button.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/assets/js/bootstrap-button.js b/docs/assets/js/bootstrap-button.js index a0e053547..0238ca3cb 100644 --- a/docs/assets/js/bootstrap-button.js +++ b/docs/assets/js/bootstrap-button.js @@ -91,7 +91,9 @@ $(function () { $('body').on('click.button.data-api', '[data-toggle^=button]', function ( e ) { - $(e.currentTarget).button('toggle') + var $btn = $(e.target) + if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn') + $btn.button('toggle') }) }) |
