diff options
author | Nicolai Tellefsen <niccofyren@gmail.com> | 2016-03-21 14:15:29 +0100 |
---|---|---|
committer | Nicolai Tellefsen <niccofyren@gmail.com> | 2016-03-21 14:15:29 +0100 |
commit | de396b689bb2ad8241d19ddf8cb97197e7054bec (patch) | |
tree | 25022258e7536ff8a146fa168d831b7b7b61f940 /web/nms.gathering.org/js/nms-info-box.js | |
parent | ac9fec052dce3bd911690e9a4ecb5010c5fd9673 (diff) |
NMS: Add click-toggle to switchInfo window
Diffstat (limited to 'web/nms.gathering.org/js/nms-info-box.js')
-rw-r--r-- | web/nms.gathering.org/js/nms-info-box.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/web/nms.gathering.org/js/nms-info-box.js b/web/nms.gathering.org/js/nms-info-box.js index dc993a9..5f16ec2 100644 --- a/web/nms.gathering.org/js/nms-info-box.js +++ b/web/nms.gathering.org/js/nms-info-box.js @@ -22,6 +22,10 @@ var nmsInfoBox = nmsInfoBox || { * Shows a window from the _windowTypes list */ nmsInfoBox.showWindow = function (windowName,argument) { + if(windowName == "switchInfo" && argument != '' && argument == this._window.sw) { + nmsInfoBox.hide(); + return; + } nmsInfoBox.hide(); for(var win in this._windowTypes) { if(windowName == win) { |