mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
js: Also handle spinner elements which are not direct descendants of an element
This commit is contained in:
parent
115bb80c6a
commit
d0eca387ee
@ -348,8 +348,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Show a spinner depending on how the form is being submitted
|
// Show a spinner depending on how the form is being submitted
|
||||||
if (autosubmit && typeof $el !== 'undefined' && $el.next().hasClass('spinner')) {
|
if (autosubmit && typeof $el !== 'undefined' && $el.siblings('.spinner').length) {
|
||||||
$el.next().addClass('active');
|
$el.siblings('.spinner').first().addClass('active');
|
||||||
} else if ($button.length && $button.is('button') && $button.hasClass('animated')) {
|
} else if ($button.length && $button.is('button') && $button.hasClass('animated')) {
|
||||||
$button.addClass('active');
|
$button.addClass('active');
|
||||||
} else if ($button.length && $button.attr('data-progress-label')) {
|
} else if ($button.length && $button.attr('data-progress-label')) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user