Update todays_detections.php
ease of use improvement
This commit is contained in:
@@ -173,10 +173,12 @@ document.getElementById("searchterm").oninput = (function(e) {
|
|||||||
if (e.key === "Enter") {
|
if (e.key === "Enter") {
|
||||||
clearTimeout(timer);
|
clearTimeout(timer);
|
||||||
searchDetections(document.getElementById("searchterm").value);
|
searchDetections(document.getElementById("searchterm").value);
|
||||||
|
document.getElementById("searchterm").blur();
|
||||||
} else {
|
} else {
|
||||||
clearTimeout(timer);
|
clearTimeout(timer);
|
||||||
timer = setTimeout(function() {
|
timer = setTimeout(function() {
|
||||||
searchDetections(document.getElementById("searchterm").value);
|
searchDetections(document.getElementById("searchterm").value);
|
||||||
|
document.getElementById("searchterm").blur();
|
||||||
}, 1000);
|
}, 1000);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user