aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/bootstrap-buttons.js8
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) {