CC-3137 : Cleaning Up Old Playlist Stuff
adding new playlist to the library.
This commit is contained in:
parent
01576b33c8
commit
606c52470a
|
@ -319,7 +319,12 @@ function newSPL() {
|
||||||
stopAudioPreview();
|
stopAudioPreview();
|
||||||
url = '/Playlist/new/format/json';
|
url = '/Playlist/new/format/json';
|
||||||
|
|
||||||
$.post(url, openDiffSPL);
|
$.post(url, function(json){
|
||||||
|
openDiffSPL(json);
|
||||||
|
|
||||||
|
//redraw the library list
|
||||||
|
redrawDataTablePage();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function deleteSPL() {
|
function deleteSPL() {
|
||||||
|
@ -340,6 +345,7 @@ function deleteSPL() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function openDiffSPL(json) {
|
function openDiffSPL(json) {
|
||||||
|
|
||||||
if(json.playlist_error == true){
|
if(json.playlist_error == true){
|
||||||
alertPlaylistErrorAndReload();
|
alertPlaylistErrorAndReload();
|
||||||
}
|
}
|
||||||
|
@ -348,7 +354,6 @@ function openDiffSPL(json) {
|
||||||
.append(json.html);
|
.append(json.html);
|
||||||
|
|
||||||
currentlyOpenedSplId = json.pl_id;
|
currentlyOpenedSplId = json.pl_id;
|
||||||
|
|
||||||
setUpSPL();
|
setUpSPL();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue