mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-03-28 02:00:23 +00:00
push disable setting to the event loop - this allows for form submit to begin
This commit is contained in:
parent
13a59a0124
commit
e5fb1da164
1 changed files with 5 additions and 3 deletions
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…
Reference in a new issue