js: Also handle spinner elements which are not direct descendants of an element
This commit is contained in:
parent
115bb80c6a
commit
d0eca387ee
public/js/icinga
|
@ -348,8 +348,8 @@
|
|||
}
|
||||
|
||||
// Show a spinner depending on how the form is being submitted
|
||||
if (autosubmit && typeof $el !== 'undefined' && $el.next().hasClass('spinner')) {
|
||||
$el.next().addClass('active');
|
||||
if (autosubmit && typeof $el !== 'undefined' && $el.siblings('.spinner').length) {
|
||||
$el.siblings('.spinner').first().addClass('active');
|
||||
} else if ($button.length && $button.is('button') && $button.hasClass('animated')) {
|
||||
$button.addClass('active');
|
||||
} else if ($button.length && $button.attr('data-progress-label')) {
|
||||
|
|
Loading…
Reference in New Issue