mirror of
https://github.com/flynx/PortableMag.git
synced 2025-11-01 04:20:20 +00:00
minor #URL related changes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
82d24fd8f0
commit
fb812d6e95
@ -729,9 +729,9 @@ function saveURLState(){
|
|||||||
|
|
||||||
// clear the url if it does not match the current page...
|
// clear the url if it does not match the current page...
|
||||||
} else {
|
} else {
|
||||||
|
// XXX need to do this AFTER the page is changed, and not befor...
|
||||||
if(n != parseInt(anchor)
|
if(n != parseInt(anchor)
|
||||||
// do not remove linked pages...
|
// do not remove linked pages...
|
||||||
// XXX this does not work when navigating from a different page...
|
|
||||||
|| (elem.hasClass('page') && n != getPageNumber(elem))
|
|| (elem.hasClass('page') && n != getPageNumber(elem))
|
||||||
|| n != getPageNumber(elem).parents('.page')){
|
|| n != getPageNumber(elem).parents('.page')){
|
||||||
window.location.hash = ''
|
window.location.hash = ''
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user