Onepage working

This commit is contained in:
Kasper Rynning-Tønnesen
2016-01-23 14:54:05 +01:00
parent e25f8e157c
commit 9015d705a5
9 changed files with 31 additions and 7 deletions

View File

@@ -201,6 +201,8 @@ var Nochan = {
to_channel: function(chan, popstate){
$("#channel-load").css("display", "block");
$.ajax({
url: chan + "/php/channel.php",
success: function(e){
@@ -330,6 +332,7 @@ $(".listen-button").click(function(e){
//console.log($(".room-namer").attr("placeholder"));
if($(".room-namer").val() == ""){
e.preventDefault();
window.location = "?chan="+$(".room-namer").attr("placeholder");
//window.location = "?chan="+
Nochan.to_channel($(".room-namer").attr("placeholder"));
}
});