From: Heinrich Fenkart Date: Sun, 26 Oct 2014 05:17:05 +0000 (+0100) Subject: Docs: progress bars' animation now needs to be manually toggled X-Git-Tag: v3.3.0~22^2~4^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66e140db82d367710013707a327c67d67168b3c9;p=thirdparty%2Fbootstrap.git Docs: progress bars' animation now needs to be manually toggled Refs #14409 --- diff --git a/docs/_includes/components/progress-bars.html b/docs/_includes/components/progress-bars.html index adf686853d..f4c1631e7f 100644 --- a/docs/_includes/components/progress-bars.html +++ b/docs/_includes/components/progress-bars.html @@ -168,12 +168,13 @@

Add .active to .progress-bar-striped to animate the stripes right to left. Not available in IE9 and below.

-
45% Complete
+
45% Complete
+
{% highlight html %}
-
+
45% Complete
diff --git a/docs/assets/js/src/application.js b/docs/assets/js/src/application.js index 9cd8ea24d3..571645e5f1 100644 --- a/docs/assets/js/src/application.js +++ b/docs/assets/js/src/application.js @@ -101,7 +101,7 @@ $('.bs-docs-popover').popover() // Button state demo - $('#loading-example-btn').click(function () { + $('#loading-example-btn').on('click', function () { var btn = $(this) btn.button('loading') setTimeout(function () { @@ -109,6 +109,10 @@ }, 3000) }) + // Activate animated progress bar + $('.bs-docs-activate-animated-progressbar').on('click', function () { + $(this).siblings('.progress').find('.progress-bar-striped').toggleClass('active') + }) // Config ZeroClipboard ZeroClipboard.config({