From 5dade4fd37d9c37ce6b7dc25c31c954fe08cd6b7 Mon Sep 17 00:00:00 2001 From: ProfYaffle Date: Sun, 21 Dec 2014 16:19:18 +0000 Subject: [PATCH] WebUI: Add CSS elements for day of week in EPG and DVR info dialogs --- src/webui/static/app/ext.css | 9 ++++++++- src/webui/static/app/tvheadend.js | 3 ++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/webui/static/app/ext.css b/src/webui/static/app/ext.css index ff2a1a59..c969aa03 100644 --- a/src/webui/static/app/ext.css +++ b/src/webui/static/app/ext.css @@ -510,9 +510,16 @@ width: 100px; } + +.x-nice-dayofweek { + display: inline-block; + width: 4em; +} + .x-nice-date { display: inline-block; - width: 10em; + text-align: center; + width: 6em; } .x-nice-time { diff --git a/src/webui/static/app/tvheadend.js b/src/webui/static/app/tvheadend.js index 1e6f879d..ab667d0c 100644 --- a/src/webui/static/app/tvheadend.js +++ b/src/webui/static/app/tvheadend.js @@ -156,7 +156,8 @@ Ext.Ajax.request({ */ tvheadend.niceDate = function(dt) { var d = new Date(dt); - return '
' + d.toLocaleString(window.navigator.language, {weekday: 'long'}) + ' ' + d.toLocaleDateString() + '
' + + return '
' + d.toLocaleString(window.navigator.language, {weekday: 'long'}) + '
' + + '
' + d.toLocaleDateString() + '
' + '
' + d.toLocaleTimeString() + '
'; }