diff --git a/docs-assets/js/application.js b/docs-assets/js/application.js index ace8bddfcb..3fd599eb7b 100644 --- a/docs-assets/js/application.js +++ b/docs-assets/js/application.js @@ -90,7 +90,7 @@ .popover() // button state demo - $('#fat-btn') + $('#loading-example-btn') .click(function () { var btn = $(this) btn.button('loading') diff --git a/javascript.html b/javascript.html index 2ebb503e2d..39dbc6e8e9 100644 --- a/javascript.html +++ b/javascript.html @@ -1334,14 +1334,23 @@ $('#my-alert').bind('closed.bs.alert', function () {

Stateful

Add data-loading-text="Loading..." to use a loading state on a button.

-
{% highlight html %} - + {% endhighlight %}

Single toggle

@@ -1440,7 +1449,16 @@ $('.btn').button()

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.

{% highlight html %} - + + {% endhighlight %}