Skip to content

Commit

Permalink
add note about firefox persisting disabled state on buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
fat committed Jan 8, 2012
1 parent aa0c4ac commit 6e8a3bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/javascript.html
Original file line number Diff line number Diff line change
Expand Up @@ -811,6 +811,9 @@ <h4>$().button('loading')</h4>
<p>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 <code>data-loading-text</code>.
</p>
<pre class="prettyprint linenums">&lt;button class="btn" data-loading-text="loading stuff..." &gt;...&lt;/button&gt;</pre>
<p>
<span class="label notice">Notice</span> Firefox persists the disabled state across page loads. A workaround for this is to use: <code>autocomplete="off"</code>. More info can be found <a href="https://github.com/twitter/bootstrap/issues/793">here</a>.

This comment has been minimized.

Copy link
@cgunther

cgunther Jan 9, 2012

Contributor

Should this be clarified to note that it happens specifically on page reloads, not just across page loads in general?

</p>
<h4>$().button('reset')</h4>
<p>Resets button state - swaps text to original text.</p>
<h4>$().button(string)</h4>
Expand Down

0 comments on commit 6e8a3bb

Please sign in to comment.