diff options
author | Nicolai Tellefsen <niccofyren@gmail.com> | 2016-03-23 10:52:34 +0100 |
---|---|---|
committer | Nicolai Tellefsen <niccofyren@gmail.com> | 2016-03-23 10:52:34 +0100 |
commit | f421bfcac59d211f334842adfc04e41f8a6585ea (patch) | |
tree | 529df14bc7be090ed2ea98ef53842c092d30a16a | |
parent | a974e356decee205806f366fba776f2d770bd220 (diff) |
NMS: Fix comment hash-check logic
-rw-r--r-- | web/nms.gathering.org/js/nms-info-box.js | 13 |
1 files changed, 7 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 623f6be..0481420 100644 --- a/web/nms.gathering.org/js/nms-info-box.js +++ b/web/nms.gathering.org/js/nms-info-box.js @@ -233,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(oldView == "comments" && 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; @@ -333,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); |