aboutsummaryrefslogtreecommitdiffstats
path: root/web/nms.gathering.org/js/nms-map.js
diff options
context:
space:
mode:
authorKristian Lyngstol <kly@kly@.no>2016-03-22 23:13:02 +0100
committerKristian Lyngstol <kly@kly@.no>2016-03-22 23:13:02 +0100
commit068baf7c5de1c4bf3a9b12a5eb8c88057178b19d (patch)
tree55f7b3e2eeda659fa13f018b436b1b4b684282a9 /web/nms.gathering.org/js/nms-map.js
parent3e0ad5edff8cf33493b8b6aab92838c939fe5d69 (diff)
parent047b729a1e92446a1c5ce68f806b932b79c98642 (diff)
Merge branch 'master' of github.com:tech-server/tgmanage
Diffstat (limited to 'web/nms.gathering.org/js/nms-map.js')
-rw-r--r--web/nms.gathering.org/js/nms-map.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/web/nms.gathering.org/js/nms-map.js b/web/nms.gathering.org/js/nms-map.js
index 1f4d6b7..ada6886 100644
--- a/web/nms.gathering.org/js/nms-map.js
+++ b/web/nms.gathering.org/js/nms-map.js
@@ -275,6 +275,9 @@ nmsMap._drawSwitch = function(sw)
this._drawBox(this._c.switch.ctx, box['x'],box['y'],box['width'],box['height']);
this._c.switch.ctx.shadowBlur = 0;
this._drawText(this._c.text.ctx, sw,box);
+
+ if(this._info[sw])
+ this._drawSwitchInfo(sw);
};
nmsMap._drawSwitchInfo = function(sw) {
@@ -448,6 +451,8 @@ nmsMap.canvasClick = function(e)
} else {
nmsInfoBox.click(sw);
}
+ } else {
+ nmsInfoBox.hide();
}
};