Get rid of hardcoded target for action-tables
This commit is contained in:
parent
4378282e9f
commit
8a7ac587d9
|
@ -7,7 +7,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<table class="action comments">
|
<table data-base-target="_next" class="action comments">
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ $helper = $this->getHelper('CommandForm');
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content downtimes">
|
<div class="content downtimes">
|
||||||
<table class="action">
|
<table data-base-target="_next" class="action">
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php foreach ($this->downtimes as $downtime): ?>
|
<?php foreach ($this->downtimes as $downtime): ?>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -14,7 +14,7 @@ No entries found
|
||||||
</div>
|
</div>
|
||||||
<?php return; endif ?>
|
<?php return; endif ?>
|
||||||
|
|
||||||
<table class="action">
|
<table data-base-target="_next" class="action">
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php foreach ($history as $event): ?>
|
<?php foreach ($history as $event): ?>
|
||||||
<?php
|
<?php
|
||||||
|
|
|
@ -5,7 +5,7 @@ if ($hosts->count() === 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
?><table class="action">
|
?><table data-base-target="_next" class="action">
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ if ($hosts->count() === 0) {
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<table class="action multiselect">
|
<table data-base-target="_next" class="action multiselect">
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php foreach($hosts as $host):
|
<?php foreach($hosts as $host):
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ if (empty($this->notifications)) {
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<table class="action">
|
<table data-base-target="_next" class="action">
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ Sort by <?= $this->sortControl ?>
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<table class="action multiselect<?php if ($this->compact): ?> compact<?php endif ?>" style="table-layout: auto;">
|
<table data-base-target="_next" class="action multiselect<?php if ($this->compact): ?> compact<?php endif ?>" style="table-layout: auto;">
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
|
@ -43,7 +43,7 @@ No History Available For This Object
|
||||||
<?php return; endif ?>
|
<?php return; endif ?>
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<table class="action">
|
<table data-base-target="_next" class="action">
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
||||||
<?php foreach ($this->history as $event):
|
<?php foreach ($this->history as $event):
|
||||||
|
|
|
@ -257,15 +257,7 @@
|
||||||
$target = $container;
|
$target = $container;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ...the only exception are class="action" tables...
|
// You can of course override the default behaviour:
|
||||||
if ($el.closest('table.action').length) {
|
|
||||||
if ($el.closest('#col2').length) {
|
|
||||||
this.icinga.ui.moveToLeft();
|
|
||||||
}
|
|
||||||
$target = $('#col2');
|
|
||||||
}
|
|
||||||
|
|
||||||
// ...and you can of course override the default behaviour:
|
|
||||||
if ($el.closest('[data-base-target]').length) {
|
if ($el.closest('[data-base-target]').length) {
|
||||||
targetId = $el.closest('[data-base-target]').data('baseTarget');
|
targetId = $el.closest('[data-base-target]').data('baseTarget');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue