Skip to content
Snippets Groups Projects
Commit 071ed232 authored by Emanuele Aina's avatar Emanuele Aina
Browse files

themes: Autofocus the search box when opening the popup


Let users type immediately when opening the search box, rather than
requiring them to also click on the input field.

Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
parent f88ad129
No related branches found
No related tags found
1 merge request!298Cleanup the theme and autofocus the search box
Pipeline #282012 canceled
......@@ -173,6 +173,7 @@ $(document).ready(function () {
var icon = baseURLPath + "/images/search.svg";
if ($(".searchWrapper").hasClass("searchInView")) {
icon = baseURLPath + "/images/search-orange.svg";
$(".searchWrapper input").focus();
}
$(".searchTrigger img").attr("src", icon);
}),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment