From 051ffdda35fe2dc8f74114a4de6ce69909412939 Mon Sep 17 00:00:00 2001 From: celogeek <65178+celogeek@users.noreply.github.com> Date: Thu, 21 May 2020 16:42:02 +0200 Subject: [PATCH] activate search focus if search in progress --- cps/templates/layout.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cps/templates/layout.html b/cps/templates/layout.html index d486e103..95eecf80 100644 --- a/cps/templates/layout.html +++ b/cps/templates/layout.html @@ -227,7 +227,9 @@ $(document).ready(function() { var inp = $('#query').first() var val = inp.val() - inp.val('').blur().focus().val(val) + if (val.length) { + inp.val('').blur().focus().val(val) + } }); });