From 90027eb2ee312f78ae0251fb83fc36faad06bf2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Mon, 15 Jan 2018 20:33:27 +0100 Subject: [PATCH] More js fixes --- code/html/custom.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/html/custom.js b/code/html/custom.js index 906fc2e0..036fe768 100644 --- a/code/html/custom.js +++ b/code/html/custom.js @@ -427,7 +427,7 @@ function doToggle(element, value) { function doScan() { $("#scanResult").html(""); $("div.scan.loading").show(); - websock.send(JSON.stringify({'action': 'scan', 'data': {}})); + websock.send(JSON.stringify({"action": "scan", "data": {}})); return false; } @@ -641,8 +641,8 @@ function initMagnitudes(data) { } function getManifest(sensor_id) { - for (i in manifest) { - if (manifest[i].sensor_id ===sensor_id) { + for (var i in manifest) { + if (manifest[i].sensor_id === sensor_id) { return manifest[i]; } }