aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/nms-info-box.js
diff options
context:
space:
mode:
authorKristian Lyngstol <kristian@bohemians.org>2016-05-18 22:46:52 +0200
committerKristian Lyngstol <kristian@bohemians.org>2016-05-18 22:46:52 +0200
commitbfca34155afab12a75524de4fe664ff20808ec86 (patch)
tree79553c8a40b48de39f14e7344bf3e22ada4031fa /web/js/nms-info-box.js
parent6233a3e28ce39d3773cb0879015045d28c454a37 (diff)
Disable IE support and HTML-injection
Diffstat (limited to 'web/js/nms-info-box.js')
-rw-r--r--web/js/nms-info-box.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/web/js/nms-info-box.js b/web/js/nms-info-box.js
index bad2960..b4b8c4c 100644
--- a/web/js/nms-info-box.js
+++ b/web/js/nms-info-box.js
@@ -45,7 +45,7 @@ var nmsInfoBox = nmsInfoBox || {
'views': {
'initial': {
'name': 'Switch summary',
- 'panels': ['switchComments','switchSummary']
+ 'panels': ['switchSummary','switchComments']
},
'details': {
'name': 'Switch details',
@@ -294,7 +294,7 @@ var windowHandler = function () {
this.unloadWindow();
this.argument = argument;
this._window = this.windowTypes[windowName];
- this.showTitle(this._window.title);
+ this.showTitle(this._window.title + " " + (argument ? argument : ""));
this.showView();
this.show();
};
@@ -849,8 +849,8 @@ var switchCommentsPanel = function () {
tr.className =
td1 = tr.insertCell(0);
td2 = tr.insertCell(1);
- td1.innerHTML = logs[v]['timestamp'];
- td2.innerHTML = "[" + logs[v]['username'] + "] " + logs[v]['log'];
+ td1.textContent = logs[v]['timestamp'];
+ td2.textContent = "[" + logs[v]['username'] + "] " + logs[v]['log'];
}
domObj.appendChild(table);