(function ($, document, apiClient) {
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);
});
}
});
}
function renderRecordings(page, recordings) {
var html = '';
for (var i = 0, length = recordings.length; i < length; i++) {
var recording = recordings[i];
html += '