Bugzilla – Attachment 115264 Details for
Bug 27195
Set focus for cursor to city input box when creating new cities
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
bug 27195:Set focus for cursor to city input box when creating new cities
bug-27195Set-focus-for-cursor-to-city-input-box-wh.patch (text/plain), 1.40 KB, created by
Ella
on 2021-01-19 00:59:55 UTC
(
hide
)
Description:
bug 27195:Set focus for cursor to city input box when creating new cities
Filename:
MIME Type:
Creator:
Ella
Created:
2021-01-19 00:59:55 UTC
Size:
1.40 KB
patch
obsolete
>From 8d33c506523cfecc1bedded45463815c4f034c58 Mon Sep 17 00:00:00 2001 >From: Ella Wipatene <ellawipatene@gmail.com> >Date: Mon, 18 Jan 2021 23:50:07 +0000 >Subject: [PATCH] bug 27195:Set focus for cursor to city input box when > creating new cities > >(Before downloading the patch) > 1. Go to administration > 2. Go to cities > 3. Click on add new city > 4. See if the cursor automatically focuses to the first city > container (It shouldn't). > 5. Apply patch > 6. Repeat steps 1-4 > 7. If the cursor automatically focuses in the first city container, > the patch has worked! > >Sponsored-by: Catalyst IT >--- > koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt >index 618e757773..2b6ed7e3c5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cities.tt >@@ -168,6 +168,8 @@ > [% INCLUDE 'datatables.inc' %] > <script> > $(document).ready(function() { >+ >+ $("#city_name").focus(); > var cities_table_url = '/api/v1/cities?'; > [% IF city_name_filter %] > var city_name_filter = { >@@ -231,6 +233,8 @@ > ] > }); > }); >+ >+ > </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 27195
:
115264
|
115350
|
115355
|
115360
|
115365
|
115615
|
139418
|
139422
|
140732