Forgot something in remote

This commit is contained in:
Kasper Rynning-Tønnesen
2015-06-10 18:45:17 +02:00
parent 67367b7562
commit ba91f8bde5
2 changed files with 7 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ socket.on("id", function(id)
chan = arr[1].toLowerCase();
$("#chan").html(chan.substring(0,1).toUpperCase()+chan.substring(1).toLowerCase());
socket.on(chan.toLowerCase(), function(msg){
populate_list(msg, false);
channel_function(msg);
});
setup_youtube_listener(chan);

View File

@@ -16,6 +16,11 @@ var check = false;
return check; };
socket.on(chan.toLowerCase(), function(msg){
channel_function(msg);
});
function channel_function(msg)
{
if(msg[0] == "list")
{
full_playlist = msg[1];
@@ -58,7 +63,7 @@ socket.on(chan.toLowerCase(), function(msg){
populate_list(full_playlist);
}
});
}
socket.on("skipping", function(obj)
{