summaryrefslogtreecommitdiff
path: root/assets/js/bootstrap-button.js
diff options
context:
space:
mode:
Diffstat (limited to 'assets/js/bootstrap-button.js')
-rwxr-xr-xassets/js/bootstrap-button.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/assets/js/bootstrap-button.js b/assets/js/bootstrap-button.js
index d85c8294..6b36753d 100755
--- a/assets/js/bootstrap-button.js
+++ b/assets/js/bootstrap-button.js
@@ -1,5 +1,5 @@
/* ============================================================
- * bootstrap-button.js v2.0.0
+ * bootstrap-button.js v2.0.2
* http://twitter.github.com/bootstrap/javascript.html#buttons
* ============================================================
* Copyright 2012 Twitter, Inc.
@@ -91,8 +91,10 @@
$(function () {
$('body').on('click.button.data-api', '[data-toggle^=button]', function ( e ) {
- $(e.target).button('toggle')
+ var $btn = $(e.target)
+ if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn')
+ $btn.button('toggle')
})
})
-}( window.jQuery )
+}( window.jQuery ); \ No newline at end of file