From 8a7ac587d9d9c41e0dcae68cc0c6dd0e3602a9cc Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 21 Mar 2014 10:27:46 +0000 Subject: [PATCH] Get rid of hardcoded target for action-tables --- .../application/views/scripts/list/comments.phtml | 2 +- .../application/views/scripts/list/downtimes.phtml | 2 +- .../application/views/scripts/list/eventhistory.phtml | 2 +- .../application/views/scripts/list/hosts-compact.phtml | 2 +- .../application/views/scripts/list/hosts.phtml | 2 +- .../application/views/scripts/list/notifications.phtml | 2 +- .../application/views/scripts/list/services.phtml | 2 +- .../application/views/scripts/show/history.phtml | 2 +- public/js/icinga/events.js | 10 +--------- 9 files changed, 9 insertions(+), 17 deletions(-) diff --git a/modules/monitoring/application/views/scripts/list/comments.phtml b/modules/monitoring/application/views/scripts/list/comments.phtml index 70120def4..8f1ea2d7b 100644 --- a/modules/monitoring/application/views/scripts/list/comments.phtml +++ b/modules/monitoring/application/views/scripts/list/comments.phtml @@ -7,7 +7,7 @@
- +
getHelper('CommandForm');
-
+
downtimes as $downtime): ?> diff --git a/modules/monitoring/application/views/scripts/list/eventhistory.phtml b/modules/monitoring/application/views/scripts/list/eventhistory.phtml index 6a753a4f8..5fe526739 100644 --- a/modules/monitoring/application/views/scripts/list/eventhistory.phtml +++ b/modules/monitoring/application/views/scripts/list/eventhistory.phtml @@ -14,7 +14,7 @@ No entries found -
+
count() === 0) { return; } -?>
+?>
count() === 0) { } ?> -
+
notifications)) { } ?> -
+
sortControl ?>
-
+
-
+
history as $event): diff --git a/public/js/icinga/events.js b/public/js/icinga/events.js index 30008eaa0..a2f8d5d7c 100644 --- a/public/js/icinga/events.js +++ b/public/js/icinga/events.js @@ -257,15 +257,7 @@ $target = $container; } - // ...the only exception are class="action" tables... - 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: + // You can of course override the default behaviour: if ($el.closest('[data-base-target]').length) { targetId = $el.closest('[data-base-target]').data('baseTarget');