mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-23 09:57:58 +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');
|
var toggleElement = $collapsible.data('toggleElement');
|
||||||
if (!! toggleElement) {
|
if (!! toggleElement) {
|
||||||
var $toggle = $collapsible.children(toggleElement).first();
|
var $toggle = $collapsible.children(toggleElement).first();
|
||||||
|
|
||||||
|
if (!! $toggle) {
|
||||||
|
$toggle = $collapsible.siblings(toggleElement).first();
|
||||||
|
}
|
||||||
if (! $toggle.length) {
|
if (! $toggle.length) {
|
||||||
_this.icinga.logger.error(
|
_this.icinga.logger.error(
|
||||||
'[Collapsible] Control `' + toggleElement + '` not found in .collapsible', $collapsible);
|
'[Collapsible] Control `' + toggleElement + '` not found in .collapsible', $collapsible);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user