CC-1665: Scheduled stream rebroadcasting and recording

-ability to edit playlists
This commit is contained in:
Martin Konecny 2012-08-03 15:59:34 -04:00
parent c3783a15b2
commit 0ea66fc33f
6 changed files with 89 additions and 28 deletions

View file

@ -611,12 +611,18 @@ var AIRTIME = (function(AIRTIME) {
callback = function() {
document.location.href = oItems.edit.url;
};
}
else {
} else if (data.ftype === "playlist" || data.ftype === "block") {
callback = function() {
//TODO
AIRTIME.playlist.fnEdit(data.id, data.ftype);
var url = '/Playlist/edit';
AIRTIME.playlist.fnEdit(data.id, data.ftype, url);
};
} else if (data.ftype === "stream") {
callback = function() {
var url = '/Webstream/edit';
AIRTIME.playlist.fnEdit(data.id, data.ftype, url);
}
} else {
throw new Exception("Unknown type: " + data.ftype);
}
oItems.edit.callback = callback;
}