From c05291296ac15965f921f753a744d94e97fd0d8b Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 10 Jul 2019 09:51:06 +0200 Subject: [PATCH] collapsible.js: Only apply external expansions/collapses if necessary --- public/js/icinga/behavior/collapsible.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/icinga/behavior/collapsible.js b/public/js/icinga/behavior/collapsible.js index 0a4302d2a..7f8962262 100644 --- a/public/js/icinga/behavior/collapsible.js +++ b/public/js/icinga/behavior/collapsible.js @@ -94,7 +94,7 @@ var _this = event.data.self; var $collapsible = $(collapsiblePath); - if ($collapsible.length) { + if ($collapsible.length && $collapsible.is('.can-collapse')) { _this.expand($collapsible); } }; @@ -109,7 +109,7 @@ var _this = event.data.self; var $collapsible = $(collapsiblePath); - if ($collapsible.length) { + if ($collapsible.length && _this.canCollapse($collapsible)) { _this.collapse($collapsible); } };