mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-18 03:11:19 +02:00
push disable setting to the event loop - this allows for form submit to begin
This commit is contained in:
8
js/bootstrap-buttons.js
vendored
8
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] )
|
||||||
|
|
||||||
state == 'loadingText' ?
|
setTimeout(function () {
|
||||||
$el.addClass(d).attr(d, d) :
|
state == 'loadingText' ?
|
||||||
$el.removeClass(d).removeAttr(d)
|
$el.addClass(d).attr(d, d) :
|
||||||
|
$el.removeClass(d).removeAttr(d)
|
||||||
|
}, 0)
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggle(el) {
|
function toggle(el) {
|
||||||
|
Reference in New Issue
Block a user