Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dkonerma authored and perexg committed Sep 8, 2014
1 parent a4d4d24 commit cba6ac0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/webui/static/app/epg.js
Expand Up @@ -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;"';
}
}
Expand Down Expand Up @@ -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 "";
Expand Down

0 comments on commit cba6ac0

Please sign in to comment.