mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-21 18:54:30 +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
2
js/bootstrap-buttons.js
vendored
2
js/bootstrap-buttons.js
vendored
@ -31,9 +31,11 @@
|
|||||||
|
|
||||||
$el.html( data[state] || $.fn.button.defaults[state] )
|
$el.html( data[state] || $.fn.button.defaults[state] )
|
||||||
|
|
||||||
|
setTimeout(function () {
|
||||||
state == 'loadingText' ?
|
state == 'loadingText' ?
|
||||||
$el.addClass(d).attr(d, d) :
|
$el.addClass(d).attr(d, d) :
|
||||||
$el.removeClass(d).removeAttr(d)
|
$el.removeClass(d).removeAttr(d)
|
||||||
|
}, 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggle(el) {
|
function toggle(el) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user