Bugzilla – Attachment 114968 Details for
Bug 27192
Set focus for cursor to item type input box when creating new item types
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27192: Automatically set focus to the item type input box
Bug-27192-Automatically-set-focus-to-the-item-type.patch (text/plain), 1.81 KB, created by
Andreas Roussos
on 2021-01-08 15:14:44 UTC
(
hide
)
Description:
Bug 27192: Automatically set focus to the item type input box
Filename:
MIME Type:
Creator:
Andreas Roussos
Created:
2021-01-08 15:14:44 UTC
Size:
1.81 KB
patch
obsolete
>From 2b0ea1833db5c6be125b773c86578bb1cb591f31 Mon Sep 17 00:00:00 2001 >From: Andreas Roussos <a.roussos@dataly.gr> >Date: Fri, 8 Jan 2021 15:45:32 +0100 >Subject: [PATCH] Bug 27192: Automatically set focus to the item type input box >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >When adding a new item type, you have to click inside the >"Îtem type:" input box before you can start entering text. > >This patch fixes that by adding the "focus" class to the relevant ><input> element so that cursor focus is set when the page loads. > >Test plan: > >1) Try to add a new item type: notice how you have to manually > click inside the "Item type:" input box before you start typing. >2) Apply this patch. >3) Repeat step 1) -- this time the "Item type:" input box should > gain focus automatically. >--- > koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt >index b2c4ca0bcf..186193dd0f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/itemtypes.tt >@@ -112,7 +112,7 @@ Item types administration > [% ELSE %] > <li> > <label for="itemtype" class="required">Item type: </label> >- <input type="text" id="itemtype" name="itemtype" size="10" maxlength="10" required="required" /> <span class="required">Required</span> >+ <input type="text" id="itemtype" name="itemtype" size="10" maxlength="10" required="required" class="focus" /> <span class="required">Required</span> > </li> > [% END %] > <li> >-- >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 27192
:
114968
|
115105
|
115225
|
115254
|
115256