From c4e559c1eec4e1280faa09df8846fcfaba233333 Mon Sep 17 00:00:00 2001 From: Nicolai Tellefsen Date: Wed, 23 Mar 2016 23:50:19 +0100 Subject: NMS: Remove subnet from ssh-link --- web/nms.gathering.org/js/nms-info-box.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'web/nms.gathering.org/js/nms-info-box.js') diff --git a/web/nms.gathering.org/js/nms-info-box.js b/web/nms.gathering.org/js/nms-info-box.js index 838ebb8..6599f5b 100644 --- a/web/nms.gathering.org/js/nms-info-box.js +++ b/web/nms.gathering.org/js/nms-info-box.js @@ -211,7 +211,8 @@ nmsInfoBox._windowTypes.switchInfo = { getTitle: function() { var sshButton = ''; try { - sshButton = nmsInfoBox._window.swm.mgmt_v4_addr; + var mgmt = nmsInfoBox._window.swm.mgmt_v4_addr; + sshButton = mgmt.split("/")[0]; } catch(e) { console.log(e); } -- cgit v1.2.3