aboutsummaryrefslogtreecommitdiffstats
path: root/web/nms.gathering.org/js/nms-info-box.js
diff options
context:
space:
mode:
authorNicolai Tellefsen <niccofyren@gmail.com>2016-03-22 00:27:11 +0100
committerNicolai Tellefsen <niccofyren@gmail.com>2016-03-22 00:27:11 +0100
commit13ae4dfb0952f604c527bdd3662be61a15b6fcb7 (patch)
tree67b9631ddf036e159b293a9fef7fd6b4b5fbe192 /web/nms.gathering.org/js/nms-info-box.js
parenta90e2a42b2a082e4c92f991d16b552640ca8455a (diff)
NMS: Show comments by default when click/searching
Diffstat (limited to 'web/nms.gathering.org/js/nms-info-box.js')
-rw-r--r--web/nms.gathering.org/js/nms-info-box.js5
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 = '';