|
@ -427,7 +427,7 @@ function doToggle(element, value) { |
|
|
function doScan() { |
|
|
function doScan() { |
|
|
$("#scanResult").html(""); |
|
|
$("#scanResult").html(""); |
|
|
$("div.scan.loading").show(); |
|
|
$("div.scan.loading").show(); |
|
|
websock.send(JSON.stringify({'action': 'scan', 'data': {}})); |
|
|
|
|
|
|
|
|
websock.send(JSON.stringify({"action": "scan", "data": {}})); |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -641,8 +641,8 @@ function initMagnitudes(data) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function getManifest(sensor_id) { |
|
|
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]; |
|
|
return manifest[i]; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|