diff --git a/scripts/todays_detections.php b/scripts/todays_detections.php index 69f1e29..15cde37 100644 --- a/scripts/todays_detections.php +++ b/scripts/todays_detections.php @@ -570,7 +570,9 @@ function searchDetections(searchvalue) { function loadDetections(detections_limit, element=undefined) { const xhttp = new XMLHttpRequest(); xhttp.onload = function() { - document.getElementsByClassName("legacyview")[0].style.display="unset"; + + document.getElementsByClassName("legacyview")[0].style.display="unset"; + if(typeof element !== "undefined") { element.remove();