diff options
author | Nicolai Tellefsen <niccofyren@gmail.com> | 2016-03-22 21:00:57 +0100 |
---|---|---|
committer | Nicolai Tellefsen <niccofyren@gmail.com> | 2016-03-22 21:00:57 +0100 |
commit | 047b729a1e92446a1c5ce68f806b932b79c98642 (patch) | |
tree | 98ab6bd537ca550bda2990eb0b90e9407ec0a530 | |
parent | 83bf82a8388e0207712b1fe9caff8935bcd06d46 (diff) |
NMS: Hide infobox when clicking empty canvas area
-rw-r--r-- | web/nms.gathering.org/js/nms-info-box.js | 4 | ||||
-rw-r--r-- | web/nms.gathering.org/js/nms-map.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/web/nms.gathering.org/js/nms-info-box.js b/web/nms.gathering.org/js/nms-info-box.js index e2c8eb7..a2d4f86 100644 --- a/web/nms.gathering.org/js/nms-info-box.js +++ b/web/nms.gathering.org/js/nms-info-box.js @@ -5,9 +5,7 @@ * * Interface: nmsInfoBox.showWindow(windowType,optionalParameter), nmsInfoBox.hide(), nmsInfoBox.refresh() * - * Any windowTypes should at a minimum implement load, unload, getTitle, getContent, getChildContent - * - * TODO: Implement useful update methods on windowTypes + * Any windowTypes should at a minimum implement load, update, unload, getTitle, getContent, getChildContent * */ diff --git a/web/nms.gathering.org/js/nms-map.js b/web/nms.gathering.org/js/nms-map.js index 33c98b7..7cbf274 100644 --- a/web/nms.gathering.org/js/nms-map.js +++ b/web/nms.gathering.org/js/nms-map.js @@ -413,6 +413,8 @@ nmsMap.canvasClick = function(e) } else { nmsInfoBox.click(sw); } + } else { + nmsInfoBox.hide(); } }; |