From 08aefe0b25b668f8163118addf934423d2ddb371 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Fri, 21 Aug 2015 13:28:35 +0200 Subject: [PATCH] js: Allow buttons to animate themself refs #8369 --- public/js/icinga/events.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/js/icinga/events.js b/public/js/icinga/events.js index 470486285..1114f79f0 100644 --- a/public/js/icinga/events.js +++ b/public/js/icinga/events.js @@ -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) {