actiontable.js: Don't ignore sub-containers

Just avoid that they are processed multiple times.

fixes #4710
This commit is contained in:
Johannes Meyer 2022-03-24 11:25:39 +01:00
parent 7a12849a66
commit 707677eebd
1 changed files with 4 additions and 4 deletions

View File

@ -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;
}