From: Chris Rebert Date: Mon, 9 Dec 2013 01:42:59 +0000 (-0800) Subject: fix #11787: document stateful button JS X-Git-Tag: v3.1.0~148^2~14^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae0d48057e7527640209aae0d60e484aa7552014;p=thirdparty%2Fbootstrap.git fix #11787: document stateful button JS --- 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 %}