toggleControls();
setLoading(-1);
debug("End Sync monitorCanvass");
- });
+// });
}
function loadCanvassers(force = false, canvass) {
- debug("loadCanvassers");
+ debug("loadCanvassers");
var options = {
method: "POST",
headers: {"Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"},
- body: "id="+canvass.id;
- }
+ body: "id="+canvass.id
+ };
fetch("api.php?get=canvassMonitor", options).then(data => data.json())
.then(resp => {
-// console.log(resp);
- for(var i = 0; i < resp.length; i++) {
- console.log(resp[i]);
- }
+ console.log(resp);
+ for(var i = 0; i < resp.length; i++) {
+ console.log(resp[i]);
+ }
debug("End loadCanvassers");
});
-
}