mirror of https://github.com/calzoneman/sync.git
Clear queued playlist actions on new playlist
This commit is contained in:
parent
66f66505af
commit
01eeab0711
|
@ -696,6 +696,7 @@ Callbacks = {
|
||||||
|
|
||||||
/* REGION Playlist Stuff */
|
/* REGION Playlist Stuff */
|
||||||
playlist: function(data) {
|
playlist: function(data) {
|
||||||
|
PL_QUEUED_ACTIONS = [];
|
||||||
// Clear the playlist first
|
// Clear the playlist first
|
||||||
var q = $("#queue");
|
var q = $("#queue");
|
||||||
q.html("");
|
q.html("");
|
||||||
|
@ -741,6 +742,7 @@ Callbacks = {
|
||||||
else {
|
else {
|
||||||
var liafter = playlistFind(data.after);
|
var liafter = playlistFind(data.after);
|
||||||
if(!liafter) {
|
if(!liafter) {
|
||||||
|
socket.emit("requestPlaylist");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
li.insertAfter(liafter);
|
li.insertAfter(liafter);
|
||||||
|
|
Loading…
Reference in New Issue