aboutsummaryrefslogtreecommitdiffstats
path: root/web/nms.gathering.org/js/nms-info-box.js
diff options
context:
space:
mode:
authorKristian Lyngstol <kly@kly@.no>2016-03-24 21:12:08 +0100
committerKristian Lyngstol <kly@kly@.no>2016-03-24 21:12:08 +0100
commit7c6589dd177deaba473fdde3fd48c283f5e369bc (patch)
tree1ba2db50af4df1f7f869ac1d44cc715d4f6296dc /web/nms.gathering.org/js/nms-info-box.js
parent5ed1a58290c97371ba4e7de40f3a467c3d0b6ebe (diff)
NMS: Expose ET-interfaces and more
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>","");