aboutsummaryrefslogtreecommitdiffstats
path: root/web/nms.gathering.org/js/nms-info-box.js
diff options
context:
space:
mode:
authorNicolai Tellefsen <niccofyren@gmail.com>2016-03-23 23:50:19 +0100
committerNicolai Tellefsen <niccofyren@gmail.com>2016-03-23 23:50:19 +0100
commitc4e559c1eec4e1280faa09df8846fcfaba233333 (patch)
tree70ff1b08584bb6a8cf41975c5885af5169a77316 /web/nms.gathering.org/js/nms-info-box.js
parenta3e395b281406b233a7dc949cefb8878971d8b7d (diff)
NMS: Remove subnet from ssh-link
Diffstat (limited to 'web/nms.gathering.org/js/nms-info-box.js')
-rw-r--r--web/nms.gathering.org/js/nms-info-box.js3
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);
}