]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
push disable setting to the event loop - this allows for form submit to begin
authorJacob Thornton <jacobthornton@gmail.com>
Mon, 21 Nov 2011 05:59:31 +0000 (21:59 -0800)
committerJacob Thornton <jacobthornton@gmail.com>
Mon, 21 Nov 2011 05:59:31 +0000 (21:59 -0800)
js/bootstrap-buttons.js

index 16fa161cb976268281e7a8b69b38363b447a39ed..ba52f1c06b8d9c4bf4ca311ff105710843c6dda0 100644 (file)
 
     $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) {