jellyfin-web/dashboard-ui/scripts/livetvrecording.js

20 lines
420 B
JavaScript
Raw Normal View History

2013-12-01 09:09:05 -07:00
function deleteRecording(page, id) {
Dashboard.confirm("Are you sure you wish to delete this recording?", "Confirm Recording Deletion", function (result) {
if (result) {
Dashboard.showLoadingMsg();
ApiClient.deleteLiveTvRecording(id).done(function () {
Dashboard.alert('Recording deleted');
reload(page);
});
}
});
}