From f12c57a1b5ed415b0319e7a786c9e525145336b6 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 25 Nov 2013 21:53:48 -0500 Subject: [PATCH] added recording status enum --- dashboard-ui/scripts/livetvchannel.js | 11 ++++++----- dashboard-ui/scripts/livetvchannels.js | 6 +++++- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/dashboard-ui/scripts/livetvchannel.js b/dashboard-ui/scripts/livetvchannel.js index a49ed74737..e701d17476 100644 --- a/dashboard-ui/scripts/livetvchannel.js +++ b/dashboard-ui/scripts/livetvchannel.js @@ -1,9 +1,9 @@ (function ($, document, apiClient) { var currentItem; - + function getDisplayTime(date) { - + try { date = parseISO8601Date(date, { toLocal: true }); @@ -45,7 +45,7 @@ html += ''; html += ''; - + if (program.recordingId) { html += ''; } else { @@ -65,7 +65,7 @@ } html += '' + startDate.toLocaleDateString() + ''; - + html += '' + getDisplayTime(program.StartDate) + ''; html += '' + getDisplayTime(program.EndDate) + ''; @@ -84,7 +84,8 @@ function loadPrograms(page) { ApiClient.getLiveTvPrograms({ - ChannelIds: currentItem.Id + ChannelIds: currentItem.Id, + UserId: Dashboard.getCurrentUserId() }).done(function (result) { diff --git a/dashboard-ui/scripts/livetvchannels.js b/dashboard-ui/scripts/livetvchannels.js index a26c7d6dcb..15a943d753 100644 --- a/dashboard-ui/scripts/livetvchannels.js +++ b/dashboard-ui/scripts/livetvchannels.js @@ -74,7 +74,11 @@ var page = this; - apiClient.getLiveTvChannels().done(function (result) { + apiClient.getLiveTvChannels({ + + userId: Dashboard.getCurrentUserId() + + }).done(function (result) { renderChannels(page, result.Items); });