Correct playlist not updated when empty close #30
This commit is contained in:
parent
e0043b81fd
commit
a9ca04ecef
@ -177,7 +177,7 @@ function getPlayList() {
|
|||||||
data = data.list;
|
data = data.list;
|
||||||
if(data != null && data.length != 0){
|
if(data != null && data.length != 0){
|
||||||
var noUpdate = comparePlaylist(data, savedPlaylist);
|
var noUpdate = comparePlaylist(data, savedPlaylist);
|
||||||
|
// console.log("List up to date : "+noUpdate);
|
||||||
if(!noUpdate){
|
if(!noUpdate){
|
||||||
savedPlaylist = data;
|
savedPlaylist = data;
|
||||||
$('#playlist_list').empty();
|
$('#playlist_list').empty();
|
||||||
@ -208,8 +208,11 @@ function getPlayList() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else{
|
||||||
$('#playlist_list').empty();
|
$('#playlist_list').empty();
|
||||||
|
savedPlaylist = {};
|
||||||
|
}
|
||||||
|
|
||||||
}).fail(function (data) {
|
}).fail(function (data) {
|
||||||
if(!error){
|
if(!error){
|
||||||
alert("Comunication error, please refresh.");
|
alert("Comunication error, please refresh.");
|
||||||
|
Loading…
Reference in New Issue
Block a user