Bugzilla – Attachment 100539 Details for
Bug 24844
Focus on the system preferences searchbar when going to admin home
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24844: Focus syspref searchbar
Bug-24844-Focus-syspref-searchbar.patch (text/plain), 1.25 KB, created by
PTFS Europe Sandboxes
on 2020-03-11 11:18:52 UTC
(
hide
)
Description:
Bug 24844: Focus syspref searchbar
Filename:
MIME Type:
Creator:
PTFS Europe Sandboxes
Created:
2020-03-11 11:18:52 UTC
Size:
1.25 KB
patch
obsolete
>From 5dbbc0606bddc84d0360d13ee5e7b5a9640c81b2 Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >Date: Wed, 11 Mar 2020 03:38:44 +0000 >Subject: [PATCH] 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> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt | 8 ++++++++ > 1 file changed, 8 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt >index 860d08fd2c..87522295b9 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt >@@ -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' %] >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 24844
:
100502
|
100539
|
100697