Merge branch 'bugfix/close-forms-when-switching-between-config-tabs-6436'

fixes #6436
This commit is contained in:
Johannes Meyer 2015-01-28 14:21:46 +01:00
commit 352faa8b68
8 changed files with 17 additions and 7 deletions

View File

@ -1,4 +1,4 @@
<div class="controls">
<div class="controls" data-base-target="_main">
<?= $tabs; ?>
</div>
<div class="content" data-base-target="_next">

View File

@ -1,4 +1,4 @@
<div class="controls">
<div class="controls" data-base-target="_main">
<?= $this->tabs->render($this); ?>
</div>

View File

@ -1,4 +1,4 @@
<div class="controls">
<div class="controls" data-base-target="_right">
<?= $this->tabs ?>
<h1><?= $this->escape($module->getTitle()) ?></h1>
</div>

View File

@ -1,4 +1,4 @@
<div class="controls">
<div class="controls" data-base-target="_main">
<?= $tabs; ?>
</div>
<div class="content" data-base-target="_next">

View File

@ -1,4 +1,4 @@
<div class="controls">
<div class="controls" data-base-target="_main">
<?= $tabs ?>
<h1><?= $this->translate('Roles') ?></h1>
</div>

View File

@ -1,4 +1,4 @@
<div class="controls">
<div class="controls" data-base-target="_right">
<?= $tabs; ?>
<h1><?= $this->translate('Monitoring Backends') ?></h1>
</div>

View File

@ -1,4 +1,4 @@
<div class="controls">
<div class="controls" data-base-target="_right">
<?= $this->tabs ?>
</div>
<div class="content">

View File

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