Update todays_detections.php

ease of use improvement
This commit is contained in:
ehpersonal38
2022-05-01 13:59:57 -04:00
parent cc3817eda1
commit 5bda9373ab
+2
View File
@@ -173,10 +173,12 @@ document.getElementById("searchterm").oninput = (function(e) {
if (e.key === "Enter") {
clearTimeout(timer);
searchDetections(document.getElementById("searchterm").value);
document.getElementById("searchterm").blur();
} else {
clearTimeout(timer);
timer = setTimeout(function() {
searchDetections(document.getElementById("searchterm").value);
document.getElementById("searchterm").blur();
}, 1000);
}
});