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:
parent
13a59a0124
commit
e5fb1da164
8
js/bootstrap-buttons.js
vendored
8
js/bootstrap-buttons.js
vendored
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user