Fixed some weird hashlinks, bugging with the onepage haxing

This commit is contained in:
Kasper Rynning-Tønnesen
2016-02-01 22:11:00 +01:00
parent 0b4821ca06
commit b4eac8626c
8 changed files with 20 additions and 17 deletions

View File

@@ -241,7 +241,7 @@ var Nochan = {
window.onpopstate = function(e){
var url_split = window.location.href.split("/");
if(url_split[3] != "" && (url_split[3].substring(0,1) != "#" || url_split[3] == "#!")){
if(url_split[3] != "" && (url_split[3].substring(0,1) != "#")){
Nochan.to_channel(url_split[3], true);
}
}
@@ -259,7 +259,10 @@ function initfp(){
$("#channel-load").css("display", "none");
//Materialize.toast("<a href='/remote' style='color:white;'>Try out our new feature, remote!</a>", 8000)
if(window.location.hash == "#donation")
{
window.location.hash = "#";
$('#donation').openModal()
}
channel_list = $("#channel-list-container").html();
//window.channel_list = channel_list;