diff options
| author | fat <[email protected]> | 2013-07-18 01:07:11 -0700 |
|---|---|---|
| committer | fat <[email protected]> | 2013-07-18 01:07:11 -0700 |
| commit | 4b40ee692dc066f2ad3c4dd96af67a83475f5cbe (patch) | |
| tree | 984098e720984af2e627d92ad4945b103d04cf0e /docs/assets/js/bootstrap.js | |
| parent | 37e899d76630d29565c0c6ff67885eee01777e1a (diff) | |
| download | bootstrap-4b40ee692dc066f2ad3c4dd96af67a83475f5cbe.tar.xz bootstrap-4b40ee692dc066f2ad3c4dd96af67a83475f5cbe.zip | |
cleaner way of preventing double click events + clean up tests for jshint
Diffstat (limited to 'docs/assets/js/bootstrap.js')
| -rw-r--r-- | docs/assets/js/bootstrap.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/assets/js/bootstrap.js b/docs/assets/js/bootstrap.js index c9a2a8350..c99d243ca 100644 --- a/docs/assets/js/bootstrap.js +++ b/docs/assets/js/bootstrap.js @@ -242,9 +242,9 @@ $(document).on('click.bs.button.data-api', '[data-toggle^=button]', function (e) { var $btn = $(e.target) - if ($btn.has('input').length) return // throw away double event for inputs if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn') $btn.button('toggle') + e.preventDefault() }) }(window.jQuery); |
