diff options
| author | Jacob Thornton <[email protected]> | 2011-11-20 21:59:31 -0800 |
|---|---|---|
| committer | Jacob Thornton <[email protected]> | 2011-11-20 21:59:31 -0800 |
| commit | e5fb1da164171a62612df8bded8ed3b2af8fed56 (patch) | |
| tree | e2023a11b0c2d41530b9f357e8c12720bf3e4ef5 | |
| parent | 13a59a0124c31c94fdfd4f770da506bae5dc147a (diff) | |
| download | bootstrap-e5fb1da164171a62612df8bded8ed3b2af8fed56.tar.xz bootstrap-e5fb1da164171a62612df8bded8ed3b2af8fed56.zip | |
push disable setting to the event loop - this allows for form submit to begin
| -rw-r--r-- | js/bootstrap-buttons.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/js/bootstrap-buttons.js b/js/bootstrap-buttons.js index 16fa161cb..ba52f1c06 100644 --- a/js/bootstrap-buttons.js +++ b/js/bootstrap-buttons.js @@ -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) { |
