Commit e5fb1da1 authored by Jacob Thornton's avatar Jacob Thornton

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

parent 13a59a01
...@@ -31,9 +31,11 @@ ...@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment