CC-3137 : Cleaning Up Old Playlist Stuff

adding new playlist to the library.
This commit is contained in:
Naomi Aro 2011-11-29 16:24:41 +01:00
parent 01576b33c8
commit 606c52470a
1 changed files with 8 additions and 3 deletions

View File

@ -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();
} }