From 549c5d7390e85e2232a34e40d3fa9333ca78496e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannis=20Mo=C3=9Fhammer?= Date: Thu, 10 Oct 2013 15:19:49 +0200 Subject: [PATCH] Fix detail being added twice to URLs on updateContainerHref This was caused by an redudant call to updateContainerHref in mainDetailGrid refs #4823 --- public/js/icinga/components/mainDetailGrid.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/public/js/icinga/components/mainDetailGrid.js b/public/js/icinga/components/mainDetailGrid.js index 2ada235bb..6547419d7 100644 --- a/public/js/icinga/components/mainDetailGrid.js +++ b/public/js/icinga/components/mainDetailGrid.js @@ -166,10 +166,11 @@ function(Container, $, logger, URI) { }); $('.pagination li a', contentNode.parent()).on('click', function(ev) { + var container = (new Container(this)); - container.replaceDomFromUrl( - container.updateContainerHref($(this).attr('href')) - ); + logger.debug("Pagination clicked in " + container.containerType); + + container.replaceDomFromUrl($(this).attr('href')); ev.preventDefault(); ev.stopPropagation(); return false; @@ -207,7 +208,7 @@ function(Container, $, logger, URI) { this.registerControls(); this.registerTableLinks(); this.registerHistoryChanges(); - this.registerLoadIndicator(); + }; this.construct(gridDomNode);