CC-3174 : showbuilder

refactoring playlists for the group add/delete
This commit is contained in:
Naomi Aro 2012-02-03 18:15:10 +01:00
parent 3b172f9c0c
commit 0afa904ffe
10 changed files with 320 additions and 915 deletions

View file

@ -332,9 +332,9 @@ function deleteSPL() {
stopAudioPreview();
url = '/Playlist/delete-active/format/json';
url = '/Playlist/delete';
$.post(url, function(json){
$.post(url, {"format": "json", "active": true}, function(json){
if(json.playlist_error == true){
alertPlaylistErrorAndReload();
}
@ -351,7 +351,8 @@ function openDiffSPL(json) {
}
$("#side_playlist")
.empty()
.append(json.html);
.append(json.html)
.data("id", json.pl_id);
currentlyOpenedSplId = json.pl_id;
setUpSPL();