]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
WebUI: Add CSS elements for day of week in EPG and DVR info dialogs 571/head
authorProfYaffle <ian@sproink.co.uk>
Sun, 21 Dec 2014 16:19:18 +0000 (16:19 +0000)
committerProfYaffle <ian@sproink.co.uk>
Sun, 21 Dec 2014 16:19:18 +0000 (16:19 +0000)
src/webui/static/app/ext.css
src/webui/static/app/tvheadend.js

index ff2a1a5984ef085f696b6491b168214a77aa8555..c969aa03bc08b68d6c974d6d7bde8a241af70434 100644 (file)
     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 {
index 1e6f879d7eb2b6cd8b0e4eb9ecb4b529815cb04d..ab667d0ccc8112880bfb6ab4b21be1450befe674 100644 (file)
@@ -156,7 +156,8 @@ Ext.Ajax.request({
  */
 tvheadend.niceDate = function(dt) {
     var d = new Date(dt);
-    return '<div class="x-nice-date">' + d.toLocaleString(window.navigator.language, {weekday: 'long'}) + ' ' + d.toLocaleDateString() + '</div>' +
+    return '<div class="x-nice-dayofweek">' + d.toLocaleString(window.navigator.language, {weekday: 'long'}) + '</div>' +
+           '<div class="x-nice-date">' + d.toLocaleDateString() + '</div>' +
            '<div class="x-nice-time">' + d.toLocaleTimeString() + '</div>';
 }