aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--web/nms.gathering.org/js/nms-info-box.js4
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) {