From: Jacob Thornton Date: Sun, 8 Jan 2012 22:54:36 +0000 (-0800) Subject: add note about firefox persisting disabled state on buttons X-Git-Tag: v2.0.0~6^2~313^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e8a3bba32312cb13cf70acca0575ff14651437e;p=thirdparty%2Fbootstrap.git add note about firefox persisting disabled state on buttons --- diff --git a/docs/javascript.html b/docs/javascript.html index f9877dc028..76b5edb87e 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -811,6 +811,9 @@ $('#my-alert').bind('closed', function () {

Sets button state to loading - disables button and swaps text to loading text. Loading text should be defined on the button element using the data attribute data-loading-text.

<button class="btn" data-loading-text="loading stuff..." >...</button>
+

+ Notice Firefox persists the disabled state across page loads. A workaround for this is to use: autocomplete="off". More info can be found here. +

$().button('reset')

Resets button state - swaps text to original text.

$().button(string)