From fb812d6e95931bfa804f8e3964615cced3623cd0 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Tue, 5 Feb 2013 21:35:21 +0400 Subject: [PATCH] minor #URL related changes... Signed-off-by: Alex A. Naanou --- magazine.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/magazine.js b/magazine.js index 575ca38..e91d224 100755 --- a/magazine.js +++ b/magazine.js @@ -729,9 +729,9 @@ function saveURLState(){ // clear the url if it does not match the current page... } else { + // XXX need to do this AFTER the page is changed, and not befor... if(n != parseInt(anchor) // do not remove linked pages... - // XXX this does not work when navigating from a different page... || (elem.hasClass('page') && n != getPageNumber(elem)) || n != getPageNumber(elem).parents('.page')){ window.location.hash = ''