From d3a3e547913a66cee1e16baff18b7bff9fd9eac7 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 24 Nov 2013 16:30:38 -0500 Subject: [PATCH] support display of channel images --- dashboard-ui/scripts/livetvchannels.js | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/dashboard-ui/scripts/livetvchannels.js b/dashboard-ui/scripts/livetvchannels.js index e3a1d88630..71fb540552 100644 --- a/dashboard-ui/scripts/livetvchannels.js +++ b/dashboard-ui/scripts/livetvchannels.js @@ -6,8 +6,26 @@ html += ''; - var imgUrl = "css/images/items/list/collection.png"; - var isDefault = true; + var imgUrl; + var isDefault; + + if (channel.PrimaryImageTag) { + + + imgUrl = apiClient.getUrl("LiveTV/Channels/" + channel.Id + "/Images/Primary", { + + tag: channel.PrimaryImageTag, + height: 300 + + }); + + + } else { + + imgUrl = "css/images/items/list/collection.png"; + isDefault = true; + } + var cssClass = isDefault ? "tileImage defaultTileImage" : "tileImage"; html += '
';