Align condition when to show epg progress bar with bold face

Currently running programmes (bold) should always show the progress bar to avoid an inconstitent user experience.
This commit is contained in:
Dietmar Konermann 2014-09-04 18:32:18 +02:00 committed by Jaroslav Kysela
parent a4d4d24099
commit cba6ac0003

View file

@ -251,7 +251,7 @@ tvheadend.epg = function() {
var now = new Date;
var start = record.get('start');
if (now.getTime() > start.getTime()) {
if (now.getTime() >= start.getTime()) {
meta.attr = 'style="font-weight:bold;"';
}
}
@ -309,7 +309,7 @@ tvheadend.epg = function() {
var now = new Date();
// Only render a progress bar for currently running programmes
if (now <= end && now >= start)
if (now >= start)
return (now - start) / 1000 / duration * 100;
else
return "";