aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristian Lyngstol <kly@kly@.no>2016-03-23 10:54:05 +0100
committerKristian Lyngstol <kly@kly@.no>2016-03-23 10:54:05 +0100
commitb978a05ac787660adc37a98e3173373f372dd8be (patch)
tree744d46b7f22470de8f0a52a9e70d5a3317f6266f
parent50a9e3fcb3e8e6f3ec13eebe1da8df7bdf7af45c (diff)
parentf421bfcac59d211f334842adfc04e41f8a6585ea (diff)
Merge branch 'master' of github.com:tech-server/tgmanage
-rw-r--r--web/nms.gathering.org/js/nms-info-box.js14
1 files changed, 8 insertions, 6 deletions
diff --git a/web/nms.gathering.org/js/nms-info-box.js b/web/nms.gathering.org/js/nms-info-box.js
index 304a8d9..0481420 100644
--- a/web/nms.gathering.org/js/nms-info-box.js
+++ b/web/nms.gathering.org/js/nms-info-box.js
@@ -218,6 +218,7 @@ nmsInfoBox._windowTypes.switchInfo = {
return this.childContent;
},
showComments: function() {
+ var oldView = this.activeView;
this.activeView = "comments";
var domObj = document.createElement("div");
var comments = [];
@@ -232,10 +233,6 @@ nmsInfoBox._windowTypes.switchInfo = {
if(!nmsData.comments || !nmsData.comments.comments) {
this.commentsHash = false;
- // We have data, but its old, so don't change data
- } else if(this.commentsHash != false && this.commentsHash == nmsData.comments.hash) {
- return;
-
// We have data, refresh
} else if(nmsData.comments.comments[this.sw]) {
this.commentsHash = nmsData.comments.hash;
@@ -332,9 +329,14 @@ nmsInfoBox._windowTypes.switchInfo = {
nmsInfoBox.refresh();
},
unload: function() {
- this.childContent = false;
+ this.title = '';
+ this.content = '';
+ this.childContent = false;
+ this.sw = '';
+ this.swi = '';
+ this.swm = '';
this.commentsHash = false;
- this.activeView = "";
+ this.activeView = '';
},
save: function() {
var myData = nmsInfoBox._editStringify(this.sw);