(function ($, document, apiClient) { var currentItem; var programs; function cancelRecording(page, id) { } function scheduleRecording(page, id) { } function renderPrograms(page, result) { var html = ''; var cssClass = "detailTable"; html += '
'; html += ' | Date | '; html += 'Start | '; html += 'End | '; html += 'Name | '; html += 'Genre | '; html += '
---|---|---|---|---|---|
'; if (program.RecordingId) { html += ''; } else { html += ''; } html += ' | '; var startDate = program.StartDate; try { startDate = parseISO8601Date(startDate, { toLocal: true }); } catch (err) { } html += '' + startDate.toLocaleDateString() + ' | '; html += '' + LiveTvHelpers.getDisplayTime(program.StartDate) + ' | '; html += '' + LiveTvHelpers.getDisplayTime(program.EndDate) + ' | '; html += '' + (program.Name || '') + ' | '; html += '' + program.Genres.join(' / ') + ' | '; html += '