mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 03:18:19 -07:00
20 lines
420 B
JavaScript
20 lines
420 B
JavaScript
|
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);
|
|||
|
});
|
|||
|
}
|
|||
|
|
|||
|
});
|
|||
|
}
|
|||
|
|