Scrolling to top when changing document

This commit is contained in:
Kasper Rynning-Tønnesen
2016-01-23 14:57:18 +01:00
parent 21812eab1e
commit 98ed693ffb
4 changed files with 9 additions and 4 deletions

View File

@@ -365,6 +365,8 @@ window.onpopstate = function(e){
function onepage_load(){
$("#channel-load").css("display", "block");
window.scrollTo(0, 0);
var url_split = window.location.href.split("/");
if(url_split[3] == "" || url_split[3].substring(0,1) == "#"){
$.ajax({