aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/nms-map-handlers.js
diff options
context:
space:
mode:
authorKristian Lyngstol <kly@kly.no>2019-01-11 22:18:33 +0100
committerKristian Lyngstol <kly@kly.no>2019-01-11 22:18:33 +0100
commite5db805157b2c7118ddfd3916e0427b2156e6e49 (patch)
treebdf57012c0e8224cdeb2467969e89b6fc348158e /web/js/nms-map-handlers.js
parenta4919da3a91236131f7b4e084761ff6a5f73b94f (diff)
Move the info summary in the info-box into nmsBox-logic
Also some other random drive-by fixes :D Fixes #180 References #181
Diffstat (limited to 'web/js/nms-map-handlers.js')
-rw-r--r--web/js/nms-map-handlers.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/js/nms-map-handlers.js b/web/js/nms-map-handlers.js
index 90f6922..d553fc0 100644
--- a/web/js/nms-map-handlers.js
+++ b/web/js/nms-map-handlers.js
@@ -387,11 +387,11 @@ function tempInfo(sw)
var ret = new handlerInfo("temp","Temperature");
ret.why = "Temp";
ret.score = 0;
- ret.data[0].value = "N/A";
+ ret.data[0].value = undefined;
if (testTree(nmsData,['switchstate','switches',sw,'temp'])) {
var temp = nmsData.switchstate.switches[sw].temp;
if (temp == undefined) {
- ret.data[0].value = "N/A";
+ ret.data[0].value = undefined;
} else {
temp = parseInt(temp);
ret.data[0].value = temp + "°C";
@@ -475,7 +475,7 @@ function pingInfo(sw)
ret.score = 900;
}
} else {
- ret.data[0].value = "N/A - no ping replies";
+ ret.data[0].value = "No ping replies";
ret.why = "No ping replies";
ret.score = 999;
}