minor #URL related changes...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-02-05 21:35:21 +04:00
parent 82d24fd8f0
commit fb812d6e95

View File

@ -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 = ''