aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/nms-info-box.js
diff options
context:
space:
mode:
authorKristian Lyngstol <kristian@bohemians.org>2016-05-28 18:19:08 +0200
committerKristian Lyngstol <kristian@bohemians.org>2016-05-28 18:19:08 +0200
commite9ca10ec32c7cd7054550b3b56e723d1d1fdd4a6 (patch)
tree60f936e0db793b830782dfe164c0bd42d432ec4c /web/js/nms-info-box.js
parent17a014b267696ff02c80ddd15d8e6105ff9fb8c4 (diff)
front: Tweak info-box looks/width
Makes it more snug and look the same all over
Diffstat (limited to 'web/js/nms-info-box.js')
-rw-r--r--web/js/nms-info-box.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/web/js/nms-info-box.js b/web/js/nms-info-box.js
index cd5594e..37332a0 100644
--- a/web/js/nms-info-box.js
+++ b/web/js/nms-info-box.js
@@ -838,7 +838,11 @@ var switchCommentsPanel = function () {
td1 = tr.insertCell(0);
td2 = tr.insertCell(1);
var date = new Date(logs[v]['timestamp']);
- td1.textContent = date.toString();
+ let month = date.getMonth() + 1;
+ let day = date.getDate();
+ let tmp = (date.getYear() + 1900) + "-" + (month < 10 ? "0": "") + month + "-" + (day < 10 ? "0" : "") + day + " " + date.toTimeString().replace(/:\d\d .*$/,"");
+ td1.textContent = tmp;
+ td1.classList.add("left");
td2.textContent = "[" + logs[v]['username'] + "] " + logs[v]['log'];
}
domObj.appendChild(table);
@@ -909,6 +913,7 @@ nmsInfoBox._makeTable = function(content, caption) {
tr = table.insertRow(-1);
tr.className = content[v][0].toLowerCase().replace(/[^a-z0-9_]/g,"");
td1 = tr.insertCell(0);
+ td1.classList.add("left");
td2 = tr.insertCell(1);
td1.innerHTML = content[v][0];
td2.innerHTML = content[v][1];