From: Dietmar Konermann Date: Thu, 4 Sep 2014 16:32:18 +0000 (+0200) Subject: Align condition when to show epg progress bar with bold face X-Git-Tag: v4.1~1433 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cba6ac000346ed5fcdbd630e65eb0155e6bf4212;p=thirdparty%2Ftvheadend.git 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. --- diff --git a/src/webui/static/app/epg.js b/src/webui/static/app/epg.js index 3446877fb..1bb4cac03 100644 --- a/src/webui/static/app/epg.js +++ b/src/webui/static/app/epg.js @@ -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 "";