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

update live tv labels

This commit is contained in:
Luke Pulverenti 2016-10-17 12:41:18 -04:00
parent b869606fdc
commit 138611efb5
5 changed files with 25 additions and 11 deletions

View file

@ -378,7 +378,7 @@
return '<i class="md-icon programIcon timerIcon">&#xE061;</i>';
}
function getChannelProgramsHtml(context, date, channel, programs, options) {
function getChannelProgramsHtml(context, date, channel, programs, options, index) {
var html = '';
@ -482,7 +482,7 @@
timerAttributes += ' data-seriestimerid="' + program.SeriesTimerId + '"';
}
html += '<button data-action="' + clickAction + '"' + timerAttributes + ' data-isfolder="' + program.IsFolder + '" data-id="' + program.Id + '" data-serverid="' + program.ServerId + '" data-type="' + program.Type + '" class="' + cssClass + '" style="left:' + startPercent + '%;width:' + endPercent + '%;">';
html += '<button data-action="' + clickAction + '"' + timerAttributes + ' data-id="' + program.Id + '" data-serverid="' + program.ServerId + '" data-type="' + program.Type + '" class="' + cssClass + '" style="left:' + startPercent + '%;width:' + endPercent + '%;">';
if (displayInnerContent) {
var guideProgramNameClass = "guideProgramName";
@ -506,7 +506,8 @@
html += '</div>';
if (program.IsHD && options.showHdIcon) {
html += '<i class="guideHdIcon md-icon programIcon">hd</i>';
//html += '<i class="guideHdIcon md-icon programIcon">hd</i>';
html += '<div class="programIcon programTextIcon">HD</div>';
}
html += getTimerIndicator(program);
@ -543,7 +544,7 @@
for (var i = 0, length = channels.length; i < length; i++) {
html.push(getChannelProgramsHtml(context, date, channels[i], programs, options));
html.push(getChannelProgramsHtml(context, date, channels[i], programs, options, i));
}
var programGrid = context.querySelector('.programGrid');