]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Align condition when to show epg progress bar with bold face
authorDietmar Konermann <dk@diddle-online.de>
Thu, 4 Sep 2014 16:32:18 +0000 (18:32 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 8 Sep 2014 15:56:47 +0000 (17:56 +0200)
Currently running programmes (bold) should always show the progress bar to avoid an inconstitent user experience.

src/webui/static/app/epg.js

index 3446877fbe8eac4b26d9bae080338b9b2bd3f1d4..1bb4cac0320a6d215e88936ff06932ec3433e2bb 100644 (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 "";