Merge branch 'bugfix/close-forms-when-switching-between-config-tabs-6436'
fixes #6436
This commit is contained in:
commit
352faa8b68
|
@ -1,4 +1,4 @@
|
|||
<div class="controls">
|
||||
<div class="controls" data-base-target="_main">
|
||||
<?= $tabs; ?>
|
||||
</div>
|
||||
<div class="content" data-base-target="_next">
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<div class="controls">
|
||||
<div class="controls" data-base-target="_main">
|
||||
<?= $this->tabs->render($this); ?>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<div class="controls">
|
||||
<div class="controls" data-base-target="_right">
|
||||
<?= $this->tabs ?>
|
||||
<h1><?= $this->escape($module->getTitle()) ?></h1>
|
||||
</div>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<div class="controls">
|
||||
<div class="controls" data-base-target="_main">
|
||||
<?= $tabs; ?>
|
||||
</div>
|
||||
<div class="content" data-base-target="_next">
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<div class="controls">
|
||||
<div class="controls" data-base-target="_main">
|
||||
<?= $tabs ?>
|
||||
<h1><?= $this->translate('Roles') ?></h1>
|
||||
</div>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<div class="controls">
|
||||
<div class="controls" data-base-target="_right">
|
||||
<?= $tabs; ?>
|
||||
<h1><?= $this->translate('Monitoring Backends') ?></h1>
|
||||
</div>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<div class="controls">
|
||||
<div class="controls" data-base-target="_right">
|
||||
<?= $this->tabs ?>
|
||||
</div>
|
||||
<div class="content">
|
||||
|
|
|
@ -482,6 +482,16 @@
|
|||
targetId = 'col1';
|
||||
$target = $('#' + targetId);
|
||||
self.icinga.ui.layout1col();
|
||||
} else if (targetId === '_right') {
|
||||
// Ensure that the content is displayed in the rightmost column
|
||||
$target = $el.closest('.container');
|
||||
if ($target.attr('id') === 'col1') {
|
||||
// As it's not possible to detect what's preceding the current state in the
|
||||
// history stack this just simulates _main in case the respective element
|
||||
// is not part of the rightmost column
|
||||
$target = $('#col1');
|
||||
self.icinga.ui.layout1col();
|
||||
}
|
||||
} else {
|
||||
$target = $('#' + targetId);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue