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();
|
||||
url = '/Playlist/new/format/json';
|
||||
|
||||
$.post(url, openDiffSPL);
|
||||
$.post(url, function(json){
|
||||
openDiffSPL(json);
|
||||
|
||||
//redraw the library list
|
||||
redrawDataTablePage();
|
||||
});
|
||||
}
|
||||
|
||||
function deleteSPL() {
|
||||
|
@ -340,6 +345,7 @@ function deleteSPL() {
|
|||
}
|
||||
|
||||
function openDiffSPL(json) {
|
||||
|
||||
if(json.playlist_error == true){
|
||||
alertPlaylistErrorAndReload();
|
||||
}
|
||||
|
@ -348,8 +354,7 @@ function openDiffSPL(json) {
|
|||
.append(json.html);
|
||||
|
||||
currentlyOpenedSplId = json.pl_id;
|
||||
|
||||
setUpSPL();
|
||||
setUpSPL();
|
||||
}
|
||||
|
||||
function editName() {
|
||||
|
|
Loading…
Reference in New Issue