Fixed hostcontroller and removed an errormessage that appears on channels with one song only

This commit is contained in:
Kasper Rynning-Tønnesen
2016-02-10 13:03:34 +01:00
parent f6ce377161
commit f1f265a69c
8 changed files with 20 additions and 15 deletions

View File

@@ -106,12 +106,14 @@ var List = {
full_playlist[0].added = time;
full_playlist[length].now_playing = false;
full_playlist.push(full_playlist.shift());
$("#wrapper").children()[0].remove();
try{
full_playlist.push(full_playlist.shift());
$("#wrapper").children()[0].remove();
List.insertAtIndex(full_playlist[length-1], false);
document.getElementById('wrapper').scrollTop += 1;
document.getElementById('wrapper').scrollTop += -1;
List.insertAtIndex(full_playlist[length-1], false);
document.getElementById('wrapper').scrollTop += 1;
document.getElementById('wrapper').scrollTop += -1;
}catch(e){}
},
vote: function(id, vote){