twitter/bootstrap — Issue #766: Consider an alternative method to specify button loading text if same as button text or disabled state
Author: jonathaningram
Created: 2011-12-06 23:21:35+00:00
State: open

Basically in my twig template (if you come from Symfony2 you will know what I mean), if you have this sort of usage:

```jinja
{{ 'foo.bar.save_button.label'|trans }}
```

I'm just saying that I want the "disabled" behaviour of the button, but I don't want the text to change when the button is loading. However, there is obviously a bit of duplication here in my template that I'd rather avoid to keep my line size down and typing down.

How about some sort of alternative value / attribute when you want the text to be the same?

Or, maybe what I'm really looking for is just a disabled state?

```js
myButton.button("disabled");
```