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();
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() {