diff options
-rw-r--r-- | web/nms.gathering.org/js/nms-info-box.js | 5 |
1 files changed, 4 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 a484706..7975bae 100644 --- a/web/nms.gathering.org/js/nms-info-box.js +++ b/web/nms.gathering.org/js/nms-info-box.js @@ -319,6 +319,7 @@ nmsInfoBox._windowTypes.switchInfo = { nmsInfoBox.click = function(sw) { this.showWindow("switchInfo",sw); + this._windowTypes.switchInfo.showComments(); } /* @@ -476,8 +477,10 @@ nmsInfoBox._searchKeyListener = function(e) { switch (e.keyCode) { case 13: var sw = document.getElementById("searchbox").dataset.match; - if(sw != '') + if(sw != '') { nmsInfoBox.showWindow("switchInfo",sw); + this._windowTypes.switchInfo.showComments(); + } break; case 27: document.getElementById("searchbox").dataset.match = ''; |