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:32:27 +04:00
parent a9f7bf1cba
commit 82d24fd8f0

View File

@ -729,7 +729,11 @@ function saveURLState(){
// clear the url if it does not match the current page...
} else {
if(n != parseInt(anchor)){
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 = ''
}
}