loader.js: Empty nested containers upon `__CLOSE__`

This commit is contained in:
Johannes Meyer 2023-05-19 14:02:14 +02:00
parent 4b6df1bef9
commit 88caf3c141
1 changed files with 6 additions and 0 deletions

View File

@ -550,6 +550,12 @@
return false;
}
if (req.$redirectTarget.is('.container') && req.$redirectTarget.parent().closest('.container').length > 0) {
// If it is a container that is not a top level container, we just empty it
req.$redirectTarget.empty();
return true;
}
// Close right column as requested
icinga.ui.layout1col();