aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/nms-map.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/js/nms-map.js')
-rw-r--r--web/js/nms-map.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/web/js/nms-map.js b/web/js/nms-map.js
index f95cde5..5669acb 100644
--- a/web/js/nms-map.js
+++ b/web/js/nms-map.js
@@ -114,6 +114,11 @@ nmsMap.reset = function() {
};
nmsMap.setSwitchInfo = function(sw,info) {
+ if (info != undefined) {
+ var textl = info.length;
+ if (textl > 15)
+ info = info.slice(0,15);
+ }
if (this._info[sw] != info) {
this._info[sw] = info;
this._drawSwitchInfo(sw);