Fixed deletionthingy

This commit is contained in:
Kasper Rynning-Tønnesen
2016-11-18 20:31:55 +01:00
parent 73bf5feec8
commit 450ad44550
4 changed files with 14 additions and 12 deletions

View File

@@ -21,9 +21,6 @@ var List = {
break;
case "deleted":
List.deleted_song(msg.value);
if(chromecastAvailable){
Player.sendNext({title: full_playlist[0].title, videoId: full_playlist[0].id});
}
break;
case "vote":
List.voted_song(msg.value, msg.time);
@@ -217,6 +214,9 @@ var List = {
$(".next_page_hide").css("display", "inline-block");
$(".next_page").css("display", "none");
}
if(chromecastAvailable){
Player.sendNext({title: full_playlist[0].title, videoId: full_playlist[0].id});
}
}, 305);
}catch(err){
@@ -228,6 +228,9 @@ var List = {
} else if($("#wrapper").children().length > List.page + 20){
$($("#wrapper").children()[List.page + 19]).css("display", "block");
}
if(chromecastAvailable){
Player.sendNext({title: full_playlist[0].title, videoId: full_playlist[0].id});
}
}
}