1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-30 08:39:56 +02:00

Merge branch 'master' into 2.0.2-wip

Conflicts:
	docs/assets/bootstrap.zip
This commit is contained in:
Jacob Thornton
2012-02-18 23:31:37 -08:00
4 changed files with 30 additions and 3 deletions

Binary file not shown.

View File

@@ -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')
})
})