bugfixes
authorSlightly Cyberpunk <git@git.slightlycyberpunk.com>
Fri, 7 Feb 2025 04:59:46 +0000 (23:59 -0500)
committerSlightly Cyberpunk <git@git.slightlycyberpunk.com>
Fri, 7 Feb 2025 04:59:46 +0000 (23:59 -0500)
js/canvassing.js

index a87b61e..1066ba2 100644 (file)
@@ -1038,23 +1038,22 @@ function monitorCanvass(canvass) {
     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");
   });
-
 }