scroll to top switching pages
This commit is contained in:
parent
16212d9dab
commit
67ae66ca26
|
@ -150,6 +150,7 @@ function pageswitcher(name, arg) {
|
||||||
switchtopage(name, arg)
|
switchtopage(name, arg)
|
||||||
var url = evt.srcElement.href
|
var url = evt.srcElement.href
|
||||||
history.pushState(newpagestate(name, arg), "some title", url)
|
history.pushState(newpagestate(name, arg), "some title", url)
|
||||||
|
window.scrollTo(0, 0)
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue