CC-3174 : showbuilder
refactoring playlists for the group add/delete
This commit is contained in:
parent
3b172f9c0c
commit
0afa904ffe
10 changed files with 320 additions and 915 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue