twitter/bootstrap — Issue #618: bootstrap-buttons ignores data-loading-text
Author: matthewbjones
Created: 2011-11-12 15:41:34+00:00
State: open

No matter what you specify in 'data-loading-text' on your , the JS always uses the default "loading...".

I believe the error is located at line 32:
$el.html( data[state] || $.fn.button.defaults[state] )

should be something like

$el.html( $el.data(state) || $.fn.button.defaults[state] )

$el.data()['something'] does not behave the same as $el.data('something')