CC-1665: Scheduled stream rebroadcasting and recording
-Fixed delete button on right side of library screen not working
This commit is contained in:
parent
d517bf6e19
commit
3230f14231
3 changed files with 36 additions and 3 deletions
|
@ -6,7 +6,7 @@ var AIRTIME = (function(AIRTIME){
|
|||
|
||||
if (AIRTIME.playlist === undefined) {
|
||||
AIRTIME.playlist = {};
|
||||
}
|
||||
}
|
||||
|
||||
var mod = AIRTIME.playlist,
|
||||
viewport,
|
||||
|
@ -802,6 +802,23 @@ var AIRTIME = (function(AIRTIME){
|
|||
redrawLib();
|
||||
});
|
||||
};
|
||||
|
||||
mod.fnWsDelete = function(wsid) {
|
||||
var url, id, lastMod;
|
||||
|
||||
stopAudioPreview();
|
||||
id = (wsid === undefined) ? getId() : wsid;
|
||||
lastMod = getModified();
|
||||
type = $('#obj_type').val();
|
||||
url = '/Webstream/delete';
|
||||
|
||||
$.post(url,
|
||||
{format: "json", ids: id, modified: lastMod, type: type},
|
||||
function(json){
|
||||
openPlaylist(json);
|
||||
redrawLib();
|
||||
});
|
||||
};
|
||||
|
||||
mod.disableUI = function() {
|
||||
|
||||
|
@ -903,6 +920,10 @@ var AIRTIME = (function(AIRTIME){
|
|||
$pl.delegate("#spl_delete", {"click": function(ev){
|
||||
AIRTIME.playlist.fnDelete();
|
||||
}});
|
||||
|
||||
$pl.delegate("#ws_delete", {"click": function(ev){
|
||||
AIRTIME.playlist.fnWsDelete();
|
||||
}});
|
||||
|
||||
setPlaylistEntryEvents();
|
||||
setCueEvents();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue