diff options
author | Nicolai Tellefsen <niccofyren@gmail.com> | 2016-03-23 23:50:19 +0100 |
---|---|---|
committer | Nicolai Tellefsen <niccofyren@gmail.com> | 2016-03-23 23:50:19 +0100 |
commit | c4e559c1eec4e1280faa09df8846fcfaba233333 (patch) | |
tree | 70ff1b08584bb6a8cf41975c5885af5169a77316 | |
parent | a3e395b281406b233a7dc949cefb8878971d8b7d (diff) |
NMS: Remove subnet from ssh-link
-rw-r--r-- | web/nms.gathering.org/js/nms-info-box.js | 3 |
1 files changed, 2 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 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); } |