aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristian Lyngstol <kly@kly@.no>2016-03-23 23:51:09 +0100
committerKristian Lyngstol <kly@kly@.no>2016-03-23 23:51:09 +0100
commited7909e8910ba429cdc17650995efaa358ee1b95 (patch)
tree358d2f98be7776ae86be5f42393bd4f30dd87296
parentfddc3b396c3d3efe865cd4ad2d501e61682241c4 (diff)
parentc4e559c1eec4e1280faa09df8846fcfaba233333 (diff)
Merge branch 'master' of github.com:tech-server/tgmanage
-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);
}