mirror of
https://github.com/flynx/PortableMag.git
synced 2025-10-29 11:10:08 +00:00
minor #URL related changes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
a9f7bf1cba
commit
82d24fd8f0
@ -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 = ''
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user