From 8aea2f4d3c9391c20ea4a5cd3515e23c5f650b91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannis=20Mo=C3=9Fhammer?= Date: Thu, 10 Oct 2013 15:33:57 +0200 Subject: [PATCH] Close detail on main pagination refs #4823 --- public/js/icinga/components/mainDetailGrid.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/public/js/icinga/components/mainDetailGrid.js b/public/js/icinga/components/mainDetailGrid.js index 6547419d7..653776e0f 100644 --- a/public/js/icinga/components/mainDetailGrid.js +++ b/public/js/icinga/components/mainDetailGrid.js @@ -169,8 +169,13 @@ function(Container, $, logger, URI) { var container = (new Container(this)); logger.debug("Pagination clicked in " + container.containerType); + // Detail will be removed when main pagination changes + if (container.containerType === 'icingamain') { + Icinga.replaceBodyFromUrl(URI($(this).attr('href')).removeQuery('detail')); + } else { + container.replaceDomFromUrl($(this).attr('href')); + } - container.replaceDomFromUrl($(this).attr('href')); ev.preventDefault(); ev.stopPropagation(); return false;