Browse Source

More js fixes

i18n
Xose Pérez 6 years ago
parent
commit
90027eb2ee
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      code/html/custom.js

+ 3
- 3
code/html/custom.js View File

@ -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];
}
}


Loading…
Cancel
Save