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:
parent
a4d4d24099
commit
cba6ac0003
1 changed files with 2 additions and 2 deletions
|
@ -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 "";
|
||||
|
|
Loading…
Add table
Reference in a new issue