aboutsummaryrefslogtreecommitdiffstats
path: root/web/nms.gathering.org/js/nms-info-box.js
diff options
context:
space:
mode:
authorNicolai Tellefsen <niccofyren@gmail.com>2016-03-25 01:32:13 +0100
committerNicolai Tellefsen <niccofyren@gmail.com>2016-03-25 01:32:13 +0100
commit1daa378e1eeb92c3e838f80de929707ba8ed7c63 (patch)
tree4936595a15460dd537ba46cc2c106567deca2ee8 /web/nms.gathering.org/js/nms-info-box.js
parent60af50c7b3bb7a818e1e25641fae6d0069759665 (diff)
parent7ac4551ed94c1f1393bc69e595a90dbe15bc8f6c (diff)
Merge branch 'master' of ssh://github.com/tech-server/tgmanage
Diffstat (limited to 'web/nms.gathering.org/js/nms-info-box.js')
-rw-r--r--web/nms.gathering.org/js/nms-info-box.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/web/nms.gathering.org/js/nms-info-box.js b/web/nms.gathering.org/js/nms-info-box.js
index 6609664..a718f78 100644
--- a/web/nms.gathering.org/js/nms-info-box.js
+++ b/web/nms.gathering.org/js/nms-info-box.js
@@ -574,9 +574,11 @@ nmsInfoBox._makeCommentTable = function(content) {
nmsInfoBox._searchSmart = function(id, sw) {
try {
- if (nmsData.switches.switches[sw].distro_name.toLowerCase() == id) {
- return true;
- }
+ try {
+ if (nmsData.switches.switches[sw].distro_name.toLowerCase() == id) {
+ return true;
+ }
+ } catch (e) {}
if (id.match("active")) {
var limit = id;
limit = limit.replace("active>","");