Fix detail being added twice to URLs on updateContainerHref

This was caused by an redudant call to updateContainerHref in mainDetailGrid

refs #4823
This commit is contained in:
Jannis Moßhammer 2013-10-10 15:19:49 +02:00 committed by Eric Lippmann
parent 9120cb3d99
commit 549c5d7390

View File

@ -166,10 +166,11 @@ function(Container, $, logger, URI) {
}); });
$('.pagination li a', contentNode.parent()).on('click', function(ev) { $('.pagination li a', contentNode.parent()).on('click', function(ev) {
var container = (new Container(this)); var container = (new Container(this));
container.replaceDomFromUrl( logger.debug("Pagination clicked in " + container.containerType);
container.updateContainerHref($(this).attr('href'))
); container.replaceDomFromUrl($(this).attr('href'));
ev.preventDefault(); ev.preventDefault();
ev.stopPropagation(); ev.stopPropagation();
return false; return false;
@ -207,7 +208,7 @@ function(Container, $, logger, URI) {
this.registerControls(); this.registerControls();
this.registerTableLinks(); this.registerTableLinks();
this.registerHistoryChanges(); this.registerHistoryChanges();
this.registerLoadIndicator();
}; };
this.construct(gridDomNode); this.construct(gridDomNode);