Clear queued playlist actions on new playlist

This commit is contained in:
Calvin Montgomery 2013-08-12 00:24:48 -04:00
parent 66f66505af
commit 01eeab0711
1 changed files with 2 additions and 0 deletions

View File

@ -696,6 +696,7 @@ Callbacks = {
/* REGION Playlist Stuff */
playlist: function(data) {
PL_QUEUED_ACTIONS = [];
// Clear the playlist first
var q = $("#queue");
q.html("");
@ -741,6 +742,7 @@ Callbacks = {
else {
var liafter = playlistFind(data.after);
if(!liafter) {
socket.emit("requestPlaylist");
return false;
}
li.insertAfter(liafter);