js: Allow buttons to animate themself

refs #8369
This commit is contained in:
Johannes Meyer 2015-08-21 13:28:35 +02:00
parent a11705a3fc
commit 08aefe0b25
1 changed files with 2 additions and 0 deletions

View File

@ -336,6 +336,8 @@
// Show a spinner depending on how the form is being submitted
if (autosubmit && typeof $el !== 'undefined' && $el.next().hasClass('autosubmit-warning')) {
$el.next().addClass('spinning');
} else if ($button.length && $button.is('button') && $button.hasClass('animated')) {
$button.addClass('active');
} else if ($button.length && $button.attr('data-progress-label')) {
var isInput = $button.is('input');
if (isInput) {