diff options
author | Nicolai Tellefsen <niccofyren@gmail.com> | 2016-03-23 10:07:43 +0100 |
---|---|---|
committer | Nicolai Tellefsen <niccofyren@gmail.com> | 2016-03-23 10:07:43 +0100 |
commit | 1f88d1f2ba1e304abe4cd20f0bd3aae9347f4be8 (patch) | |
tree | 4c42bb3f80aae4f6f3c189b4b76e0629f49f1a0b /web/nms.gathering.org/js/nms-info-box.js | |
parent | 19cc542fc388edf953211c0c19bb2ed7b8da536f (diff) |
NMS: Fix comments not triggering after "tab" switching
Diffstat (limited to 'web/nms.gathering.org/js/nms-info-box.js')
-rw-r--r-- | web/nms.gathering.org/js/nms-info-box.js | 3 |
1 files changed, 2 insertions, 1 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..623f6be 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 = []; @@ -233,7 +234,7 @@ nmsInfoBox._windowTypes.switchInfo = { this.commentsHash = false; // We have data, but its old, so don't change data - } else if(this.commentsHash != false && this.commentsHash == nmsData.comments.hash) { + } else if(oldView == "comments" && this.commentsHash != false && this.commentsHash == nmsData.comments.hash) { return; // We have data, refresh |