0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-20 17:54:23 +01:00

push disable setting to the event loop - this allows for form submit to begin

This commit is contained in:
Jacob Thornton 2011-11-20 21:59:31 -08:00
parent 13a59a0124
commit e5fb1da164

View File

@ -31,9 +31,11 @@
$el.html( data[state] || $.fn.button.defaults[state] )
state == 'loadingText' ?
$el.addClass(d).attr(d, d) :
$el.removeClass(d).removeAttr(d)
setTimeout(function () {
state == 'loadingText' ?
$el.addClass(d).attr(d, d) :
$el.removeClass(d).removeAttr(d)
}, 0)
}
function toggle(el) {