From 5bda9373ab0984bc677e22736a9536f30fc81a4e Mon Sep 17 00:00:00 2001 From: ehpersonal38 <103586016+ehpersonal38@users.noreply.github.com> Date: Sun, 1 May 2022 13:59:57 -0400 Subject: [PATCH] Update todays_detections.php ease of use improvement --- scripts/todays_detections.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/todays_detections.php b/scripts/todays_detections.php index 1c0aba0..4b97c71 100644 --- a/scripts/todays_detections.php +++ b/scripts/todays_detections.php @@ -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); } });