(function ($, document) { function deleteTimer(page, id) { Dashboard.confirm(Globalize.translate('MessageConfirmRecordingCancellation'), Globalize.translate('HeaderConfirmRecordingCancellation'), function (result) { if (result) { Dashboard.showLoadingMsg(); ApiClient.cancelLiveTvTimer(id).done(function () { Dashboard.alert(Globalize.translate('MessageRecordingCancelled')); reload(page); }); } }); } function renderTimers(page, timers) { var html = ''; html += '
'; html += LiveTvHelpers.getDisplayTime(timer.StartDate); html += ' - ' + LiveTvHelpers.getDisplayTime(timer.EndDate); html += '
'; if (timer.SeriesTimerId) { html += '