CC-3174 : showbuilder

mostly done with new context menu, need to finish
add/delete button actions on lib table for both screens.
This commit is contained in:
Naomi Aro 2012-02-05 18:19:22 +01:00
parent da5e1ac302
commit 6c2475bf1f
9 changed files with 305 additions and 424 deletions

View file

@ -538,15 +538,26 @@ var AIRTIME = (function(AIRTIME){
});
}
mod.fnEdit = function() {
mod.fnEdit = function(id) {
var url;
stopAudioPreview();
url = '/Playlist/edit';
$.post(url,
{format: "json", id: id},
function(json){
openPlaylist(json);
//redrawLib();
});
}
mod.fnDelete = function() {
mod.fnDelete = function(plid) {
var url, id, lastMod;
stopAudioPreview();
id = getId();
id = (plid === undefined) ? getId() : plid;
lastMod = getModified();
url = '/Playlist/delete';