]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
- better duplicate handling (ui fix)
authordero <de@ro>
Thu, 5 Mar 2015 20:30:59 +0000 (21:30 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 9 Mar 2015 15:18:35 +0000 (16:18 +0100)
src/webui/static/app/dvr.js

index 0d19c447c768d474efdc9bda8cf7b7f783c9a677..d856255c157526ba38aa65006b7de62b76175b3b 100644 (file)
@@ -20,12 +20,16 @@ tvheadend.dvrDetails = function(uuid) {
         var status = params[8].value;
         var filesize = params[9].value;
         var comment = params[10].value;
+        var duplicate = params[11].value;
         var content = '';
         var but;
 
         if (chicon != null && chicon.length > 0)
             content += '<img class="x-epg-chicon" src="' + chicon + '">';
 
+        if (duplicate)
+            content += '<div class="x-epg-meta"><font color="red"><div class="x-epg-prefix">Will be skipped<br>because is rerun of:</div>' + tvheadend.niceDate(duplicate * 1000) + '</font></div>';
+
         if (title)
           content += '<div class="x-epg-title">' + title + '</div>';
         if (subtitle)
@@ -68,7 +72,7 @@ tvheadend.dvrDetails = function(uuid) {
         params: {
             uuid: uuid,
             list: 'channel_icon,disp_title,disp_subtitle,episode,start_real,stop_real,' +
-                  'duration,disp_description,status,filesize,comment'
+                  'duration,disp_description,status,filesize,comment,duplicate'
         },
         success: function(d) {
             d = json_decode(d);