Bug 24844: Focus syspref searchbar

To test:
1) Go to Administration
2) Notice neither of the syspref search bars are focussed so you have to
click inside one to begin searching
3) Apply patch and refresh page
4) Notice the header syspref search bar is now focussed so you can begin
typing straight away

Sponsored-by: Catalyst IT
Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Aleisha Amohia 2020-03-11 03:38:44 +00:00 committed by Martin Renvoize
parent efb7c4c687
commit e7f1bb3354
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
1 changed files with 8 additions and 0 deletions

View File

@ -243,4 +243,12 @@
</div>
</div>
[% MACRO jsinclude BLOCK %]
<script>
$(document).ready(function(){
$("input[class='head-searchbox'][name='searchfield']").focus();
});
</script>
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]