From: ProfYaffle Date: Sun, 21 Dec 2014 16:19:18 +0000 (+0000) Subject: WebUI: Add CSS elements for day of week in EPG and DVR info dialogs X-Git-Tag: v4.1~560 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F571%2Fhead;p=thirdparty%2Ftvheadend.git WebUI: Add CSS elements for day of week in EPG and DVR info dialogs --- diff --git a/src/webui/static/app/ext.css b/src/webui/static/app/ext.css index ff2a1a598..c969aa03b 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 1e6f879d7..ab667d0cc 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() + '
'; }