From 707677eebd952b6d953b4aa1aebed26be45e6205 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 24 Mar 2022 11:25:39 +0100 Subject: [PATCH] actiontable.js: Don't ignore sub-containers Just avoid that they are processed multiple times. fixes #4710 --- public/js/icinga/behavior/actiontable.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/js/icinga/behavior/actiontable.js b/public/js/icinga/behavior/actiontable.js index 0fb2ed596..0d4eee272 100644 --- a/public/js/icinga/behavior/actiontable.js +++ b/public/js/icinga/behavior/actiontable.js @@ -348,8 +348,8 @@ */ this.loading = false; - this.on('rendered', '#main > .container', this.onRendered, this); - this.on('beforerender', '#main > .container', this.beforeRender, this); + this.on('rendered', '#main .container', this.onRendered, this); + this.on('beforerender', '#main .container', this.beforeRender, this); this.on('click', 'table.action tr[href], table.table-row-selectable tr[href]', this.onRowClicked, this); }; ActionTable.prototype = new Icinga.EventListener(); @@ -437,7 +437,7 @@ var _this = evt.data.self; if (evt.currentTarget !== container) { - // Nested containers are ignored + // Nested containers are not processed multiple times return; } @@ -481,7 +481,7 @@ var _this = evt.data.self; if (evt.currentTarget !== container) { - // Nested containers are ignored + // Nested containers are not processed multiple times return; }