From 29d0b8f2c75e5b89ab9c0b974f468cdff8e93656 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 7 Feb 2022 14:13:12 +0100 Subject: [PATCH] collapsible.js: Only handle content inside top-level or modal containers --- public/js/icinga/behavior/collapsible.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/icinga/behavior/collapsible.js b/public/js/icinga/behavior/collapsible.js index 9c9d8de53..498325fb2 100644 --- a/public/js/icinga/behavior/collapsible.js +++ b/public/js/icinga/behavior/collapsible.js @@ -15,7 +15,7 @@ Icinga.EventListener.call(this, icinga); this.on('layout-change', this.onLayoutChange, this); - this.on('rendered', '#layout', this.onRendered, this); + this.on('rendered', '#main > .container, #modal-content', this.onRendered, this); this.on('click', '.collapsible + .collapsible-control, .collapsible > .collapsible-control', this.onControlClicked, this);