[Koha-bugs] [Bug 27192] Set focus for cursor to item type input box when creating new item types

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jan 13 01:37:57 CET 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27192

Kelly McElligott <kelly at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #114968|0                           |1
        is obsolete|                            |

--- Comment #3 from Kelly McElligott <kelly at bywatersolutions.com> ---
Created attachment 115105
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=115105&action=edit
Bug 27192: Automatically set focus to the item type input box

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.

Signed-off-by: Kelly McElligott <kelly at bywatersolutions.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list