Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'js/bootstrap-button.js')
-rw-r--r--js/bootstrap-button.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/js/bootstrap-button.js b/js/bootstrap-button.js
index cc2d0048fd..dbb2c08ed3 100644
--- a/js/bootstrap-button.js
+++ b/js/bootstrap-button.js
@@ -85,12 +85,10 @@
/* BUTTON DATA-API
* =============== */
- $(function () {
- $('body').on('click.button.data-api', '[data-toggle^=button]', function ( e ) {
- var $btn = $(e.target)
- if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn')
- $btn.button('toggle')
- })
+ $(document).on('click.button.data-api', '[data-toggle^=button]', function (e) {
+ var $btn = $(e.target)
+ if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn')
+ $btn.button('toggle')
})
}(window.jQuery); \ No newline at end of file