(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 = ''; var index = ''; for (var i = 0, length = timers.length; i < length; i++) { var timer = timers[i]; var startDateText = LibraryBrowser.getFutureDateText(parseISO8601Date(timer.StartDate, { toLocal: true })); if (startDateText != index) { if (index) { html += ''; html += ''; } html += '