(function ($, document, apiClient) { function deleteTimer(page, id) { Dashboard.confirm("Are you sure you wish to cancel this recording?", "Confirm Recording Cancellation", function (result) { if (result) { Dashboard.showLoadingMsg(); ApiClient.cancelLiveTvTimer(id).done(function () { Dashboard.alert('Recording cancelled.'); reload(page); }); } }); } function renderTimers(page, timers) { var html = ''; html += '
'; html += LiveTvHelpers.getDisplayTime(timer.StartDate); html += ' - ' + LiveTvHelpers.getDisplayTime(timer.EndDate); html += '
'; if (timer.SeriesTimerId) { html += '