From 57dc42dbf755b2ba702896e127d5e77cc21d5bb2 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 7 Feb 2022 14:15:23 +0100 Subject: [PATCH] input-enrichment.js: Only handle content inside top-level or modal containers --- public/js/icinga/behavior/input-enrichment.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/icinga/behavior/input-enrichment.js b/public/js/icinga/behavior/input-enrichment.js index 824afffc1..58df5e6c2 100644 --- a/public/js/icinga/behavior/input-enrichment.js +++ b/public/js/icinga/behavior/input-enrichment.js @@ -27,8 +27,8 @@ var InputEnrichment = function (icinga) { Icinga.EventListener.call(this, icinga); - this.on('beforerender', this.onBeforeRender, this); - this.on('rendered', this.onRendered, this); + this.on('beforerender', '#main > .container, #modal-content', this.onBeforeRender, this); + this.on('rendered', '#main > .container, #modal-content', this.onRendered, this); /** * Enriched inputs