]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
WEBUI JS DVR: Correct the start column width
authorJaroslav Kysela <perex@perex.cz>
Sun, 21 Dec 2014 19:46:00 +0000 (20:46 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sun, 21 Dec 2014 19:53:24 +0000 (20:53 +0100)
src/webui/static/app/dvr.js
src/webui/static/app/idnode.js

index a828a23a5a82088e4ff74787e3f76ce388f03b16..2d81cfd86c6b7c8ac38da6ccb98f5ee33bb2283e 100644 (file)
@@ -441,7 +441,7 @@ tvheadend.autorec_editor = function(panel, index) {
             minduration:  { width: 80 },
             maxduration:  { width: 80 },
             weekdays:     { width: 160 },
-            start:        { width: 100 },
+            start:        { width: 120 },
             start_window: { width: 100 },
             pri:          { width: 80 },
             config_name:  { width: 120 },
@@ -495,8 +495,8 @@ tvheadend.timerec_editor = function(panel, index) {
             title:        { width: 300 },
             channel:      { width: 200 },
             weekdays:     { width: 160 },
-            start:        { width: 100 },
-            stop:         { width: 100 },
+            start:        { width: 120 },
+            stop:         { width: 120 },
             pri:          { width: 80 },
             config_name:  { width: 120 },
             owner:        { width: 100 },
index dbf192bd3af92a93e799a90a3791889efa8cc287..c7e0627ed8939406335df10b208719b41518fe0e 100644 (file)
@@ -233,7 +233,7 @@ tvheadend.IdNodeField = function(conf)
             ftype = this.hexa ? 'string' : 'numeric';
             w = 80;
         } else if (this.type === 'time') {
-            w = 120;
+            w = 140;
             ftype = 'date';
             if (this.duration) {
               ftype = 'numeric';
@@ -297,13 +297,20 @@ tvheadend.IdNodeField = function(conf)
                 }
             if (this.date) {
                 return function(v) {
-                    var dt = new Date(v * 1000);
-                    return dt.toLocaleDateString();
+                    if (v > 0) {
+                        var dt = new Date(v * 1000);
+                        return dt.toLocaleDateString();
+                    }
+                    return '';
                 }
             }
             return function(v) {
-                var dt = new Date(v * 1000);
-                return dt.toLocaleString(window.navigator.language, {weekday: 'short'}) + ' ' + dt.toLocaleString();
+                if (v > 0) {
+                    var dt = new Date(v * 1000);
+                    var wd = dt.toLocaleString(window.navigator.language, {weekday: 'short'});
+                    return wd + ' ' + dt.toLocaleString();
+                }
+                return '';
             }
         }