Add spinner active indicator for form submit buttons

refs #7968
This commit is contained in:
Alexander Fuhr 2015-02-25 14:15:32 +01:00
parent 08ace05ac7
commit 16200417eb
1 changed files with 5 additions and 0 deletions

View File

@ -226,6 +226,11 @@
event.stopPropagation();
event.preventDefault();
// activate spinner indicator
if ($button.hasClass('spinner')) {
$button.addClass('active');
}
icinga.logger.debug('Submitting form: ' + method + ' ' + url, method);
$target = self.getLinkTargetFor($form);