]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
don't use e.target incase button has icon or other content inside it
authorJacob Thornton <jacobthornton@gmail.com>
Wed, 8 Feb 2012 05:55:27 +0000 (21:55 -0800)
committerJacob Thornton <jacobthornton@gmail.com>
Wed, 8 Feb 2012 05:55:27 +0000 (21:55 -0800)
docs/assets/bootstrap.zip
docs/assets/js/bootstrap-button.js
js/bootstrap-button.js

index 5f7a919dea081b242851a5b7113a755b8454aec8..90fa63336a47670b455ecee83fc27340ae4c5694 100644 (file)
Binary files a/docs/assets/bootstrap.zip and b/docs/assets/bootstrap.zip differ
index d85c82947accbdcd2b1e70822f377ffdfa2e85d8..a3f4657e8d1be329a1fb669c48360471717fc274 100644 (file)
@@ -91,7 +91,7 @@
 
   $(function () {
     $('body').on('click.button.data-api', '[data-toggle^=button]', function ( e ) {
-      $(e.target).button('toggle')
+      $(e.currentTarget).button('toggle')
     })
   })
 
index d85c82947accbdcd2b1e70822f377ffdfa2e85d8..a3f4657e8d1be329a1fb669c48360471717fc274 100644 (file)
@@ -91,7 +91,7 @@
 
   $(function () {
     $('body').on('click.button.data-api', '[data-toggle^=button]', function ( e ) {
-      $(e.target).button('toggle')
+      $(e.currentTarget).button('toggle')
     })
   })