]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
hook up animation toggle
authorMark Otto <markdotto@gmail.com>
Thu, 29 Dec 2016 23:50:18 +0000 (15:50 -0800)
committerMark Otto <markd.otto@gmail.com>
Sat, 31 Dec 2016 06:46:00 +0000 (22:46 -0800)
docs/assets/js/src/application.js

index fee96113d708042fd1ca5b31254714a378b7ce78..15a6d03fe7b006f7a0c9560caa486a8f8af20a05 100644 (file)
       $modal.find('.modal-body input').val(recipient)
     })
 
+    // Activate animated progress bar
+    $('.bd-toggle-animated-progress').on('click', function () {
+      $(this).siblings('.progress').find('.progress-bar-striped').toggleClass('progress-bar-animated')
+    })
+
     // Insert copy to clipboard button before .highlight
     $('.highlight').each(function () {
       var btnHtml = '<div class="bd-clipboard"><span class="btn-clipboard" title="Copy to clipboard">Copy</span></div>'