mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-22 17:37:45 +02:00
Collapsible.js: Enable siblings as collapsible controls
This commit is contained in:
parent
279690cbed
commit
a715a025a9
@ -49,6 +49,10 @@
|
||||
var toggleElement = $collapsible.data('toggleElement');
|
||||
if (!! toggleElement) {
|
||||
var $toggle = $collapsible.children(toggleElement).first();
|
||||
|
||||
if (!! $toggle) {
|
||||
$toggle = $collapsible.siblings(toggleElement).first();
|
||||
}
|
||||
if (! $toggle.length) {
|
||||
_this.icinga.logger.error(
|
||||
'[Collapsible] Control `' + toggleElement + '` not found in .collapsible', $collapsible);
|
||||
|
Loading…
x
Reference in New Issue
Block a user