Merge pull request #212 from zoff-music/fix/deleted-empty

Fixed issue with deleting a song in a list with 2 elements, it thinks…
This commit is contained in:
Kasper Rynning-Tønnesen
2017-11-08 15:37:09 +01:00
committed by GitHub

View File

@@ -479,7 +479,7 @@ var List = {
Player.sendNext({title: full_playlist[0].title, videoId: full_playlist[0].id});
}
}
if(full_playlist.length <= 2){
if(full_playlist.length < 2){
List.empty = true;
$("#wrapper").html("<span id='empty-channel-message'>The playlist is empty.</span>");
}