From cba6ac000346ed5fcdbd630e65eb0155e6bf4212 Mon Sep 17 00:00:00 2001 From: Dietmar Konermann Date: Thu, 4 Sep 2014 18:32:18 +0200 Subject: [PATCH] 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. --- src/webui/static/app/epg.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webui/static/app/epg.js b/src/webui/static/app/epg.js index 3446877f..1bb4cac0 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 "";