modal.js: Request compact content with `showCompact`

This commit is contained in:
Johannes Meyer 2020-06-03 15:59:53 +02:00
parent a240e306ed
commit 74a9a8edf0
1 changed files with 2 additions and 2 deletions

View File

@ -42,8 +42,8 @@
var $modal = _this.$ghost.clone();
var $urlTarget = _this.icinga.loader.getLinkTargetFor($a);
// Add view=compact, we don't want controls in a modal
url = _this.icinga.utils.addUrlParams(url, { 'view': 'compact' });
// Add showCompact, we don't want controls in a modal
url = _this.icinga.utils.addUrlFlag(url, 'showCompact');
// Set the toggle's base target on the modal to use it as redirect target
$modal.data('redirectTarget', $urlTarget);