Unbreak the playlist form during reordering
This commit is contained in:
parent
901ca54fd6
commit
71f149f95f
|
@ -1267,11 +1267,13 @@ var AIRTIME = (function(AIRTIME){
|
||||||
|
|
||||||
mod.playlistResponse = function(json){
|
mod.playlistResponse = function(json){
|
||||||
console.log(json);
|
console.log(json);
|
||||||
if (json.error !== undefined || json.result != 0) {
|
if (json.error !== undefined ||
|
||||||
|
(json.result !== undefined && json.result != 0)) {
|
||||||
if (json.error) {
|
if (json.error) {
|
||||||
playlistError(json);
|
playlistError(json);
|
||||||
}
|
}
|
||||||
AIRTIME.playlist.replaceForm(json);
|
AIRTIME.playlist.replaceForm(json);
|
||||||
|
AIRTIME.playlist.init();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
setPlaylistContent(json);
|
setPlaylistContent(json);
|
||||||
|
|
Loading…
Reference in New Issue