twitter/bootstrap — Issue #2381: Stateful data-loading-text not working with bootstrap-button.js
Author: ryanburnett
Created: 2012-03-02 20:34:38+00:00
State: open

I'm trying to use the Bootstrap buttons loading/Stateful (http://twitter.github.com/bootstrap/javascript.html#buttons)

After clicking it, the button is not disabled nor does the text swap to "loading stuff..."

http://jsfiddle.net/BFsUQ/

If I switch the final script to:

$('.btn').button('loading')

...then the button is disabled by default and says "loading..."

http://jsfiddle.net/a5QA2/

Please take a look when you have time. Thanks.