Skip to content

Commit

Permalink
loader.js: Empty nested containers upon __CLOSE__
Browse files Browse the repository at this point in the history
  • Loading branch information
nilmerg committed May 19, 2023
1 parent 4b6df1b commit 88caf3c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions public/js/icinga/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 88caf3c

Please sign in to comment.