Fixed hashlink error on move from channel to frontpage and closing modal

This commit is contained in:
Kasper Rynning-Tønnesen
2016-02-08 11:20:46 +01:00
parent 02ccc9ee4f
commit 11ac0d75b2
4 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

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

View File

@@ -259,7 +259,7 @@ var Nochan = {
window.onpopstate = function(e){
var url_split = window.location.href.split("/");
if(url_split[3] != "" && (url_split[3].substring(0,1) != "#")){
if(url_split[3] != "" && url_split[3].substring(0,1) != "#"){
Nochan.to_channel(url_split[3], true);
}
}