1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

added recording status enum

This commit is contained in:
Luke Pulverenti 2013-11-25 21:53:48 -05:00
parent c8244de802
commit f12c57a1b5
2 changed files with 11 additions and 6 deletions

View file

@ -1,9 +1,9 @@
(function ($, document, apiClient) {
var currentItem;
function getDisplayTime(date) {
try {
date = parseISO8601Date(date, { toLocal: true });
@ -45,7 +45,7 @@
html += '<tr>';
html += '<td>';
if (program.recordingId) {
html += '<button type="button" data-icon="delete" data-inline="true" data-mini="true" data-iconpos="notext">Cancel</button>';
} else {
@ -65,7 +65,7 @@
}
html += '<td>' + startDate.toLocaleDateString() + '</td>';
html += '<td>' + getDisplayTime(program.StartDate) + '</td>';
html += '<td>' + getDisplayTime(program.EndDate) + '</td>';
@ -84,7 +84,8 @@
function loadPrograms(page) {
ApiClient.getLiveTvPrograms({
ChannelIds: currentItem.Id
ChannelIds: currentItem.Id,
UserId: Dashboard.getCurrentUserId()
}).done(function (result) {