1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00
This commit is contained in:
Heinrich Fenkart 2014-10-30 04:45:04 +01:00
parent 4b165332be
commit b8c3c5c19b
6 changed files with 8 additions and 8 deletions

View file

@ -282,7 +282,7 @@ if (typeof jQuery === 'undefined') {
e.preventDefault() e.preventDefault()
}) })
.on('focus.bs.button.data-api blur.bs.button.data-api', '[data-toggle^="button"]', function (e) { .on('focus.bs.button.data-api blur.bs.button.data-api', '[data-toggle^="button"]', function (e) {
$(e.target).closest('.btn').toggleClass('focus', e.type == 'focus') $(e.target).closest('.btn').toggleClass('focus', /^focus(in)?$/.test(e.type))
}) })
}(jQuery); }(jQuery);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -282,7 +282,7 @@ if (typeof jQuery === 'undefined') {
e.preventDefault() e.preventDefault()
}) })
.on('focus.bs.button.data-api blur.bs.button.data-api', '[data-toggle^="button"]', function (e) { .on('focus.bs.button.data-api blur.bs.button.data-api', '[data-toggle^="button"]', function (e) {
$(e.target).closest('.btn').toggleClass('focus', e.type == 'focus') $(e.target).closest('.btn').toggleClass('focus', /^focus(in)?$/.test(e.type))
}) })
}(jQuery); }(jQuery);

File diff suppressed because one or more lines are too long