aboutsummaryrefslogtreecommitdiffstats
path: root/web/js
diff options
context:
space:
mode:
Diffstat (limited to 'web/js')
-rw-r--r--web/js/nms-info-box.js1
-rw-r--r--web/js/nms.js2
2 files changed, 3 insertions, 0 deletions
diff --git a/web/js/nms-info-box.js b/web/js/nms-info-box.js
index 05ec415..869f308 100644
--- a/web/js/nms-info-box.js
+++ b/web/js/nms-info-box.js
@@ -819,6 +819,7 @@ var switchCommentsPanel = function () {
this.commentsHash = false;
this.refresh = function (reason) {
var domObj = document.createElement("div");
+ domObj.className = 'gondul-is-private';
var comments = [];
var logs = nmsOplog.getSwitchLogs(this.sw);
var table = document.createElement("table");
diff --git a/web/js/nms.js b/web/js/nms.js
index 418b948..7f4bde7 100644
--- a/web/js/nms.js
+++ b/web/js/nms.js
@@ -417,6 +417,8 @@ function detectHandler() {
var interval = nms.interval;
if (views == undefined || views == "")
views = "health";
+ if (nms._public)
+ views = "ping";
views = views.split(",");
if (views.length > 1) {