From a0b8cc21cc0a2a01c475d868ed9e56b6756cca9c Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Tue, 23 Jun 2020 15:07:14 +0200 Subject: [PATCH] Fix #1503 (js error on login screen) --- cps/templates/layout.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/templates/layout.html b/cps/templates/layout.html index 4e529eea..66fffda4 100644 --- a/cps/templates/layout.html +++ b/cps/templates/layout.html @@ -228,7 +228,7 @@ $(document).ready(function() { var inp = $('#query').first() var val = inp.val() - if (val.length) { + if (val !== "undefined") { inp.val('').blur().focus().val(val) } });