JS refresh of most recent detection
Hello! I've gone ahead and implemented some JS into overview.php that will automatically refresh the most recent audio detection, if there is a newer one. This means you don't have to manually refresh overview anymore. Open to feedback/suggestions! -Ethan
This commit is contained in:
@@ -143,7 +143,6 @@ if(isset($_GET['ajax_detections']) && $_GET['ajax_detections'] == "true" && isse
|
||||
|
||||
<script>
|
||||
function loadDetections(detections_limit, element=undefined) {
|
||||
console.log(element);
|
||||
const xhttp = new XMLHttpRequest();
|
||||
xhttp.onload = function() {
|
||||
if(typeof element !== "undefined")
|
||||
|
||||
Reference in New Issue
Block a user