WEBUI JS DVR: Correct the start column width
This commit is contained in:
parent
5dade4fd37
commit
8df348fbc3
2 changed files with 15 additions and 8 deletions
|
@ -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 },
|
||||
|
|
|
@ -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 '';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue