Bug 26712

Summary: Set focus for cursor to basket name input box on basketheader.pl
Product: Koha Reporter: Barbara Johnson <barbara.johnson>
Component: AcquisitionsAssignee: Owen Leonard <oleonard>
Status: CLOSED FIXED QA Contact: Katrin Fischer <katrin.fischer>
Severity: enhancement    
Priority: P5 - low CC: lucas, severine.queune
Version: MainKeywords: Academy
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
This patch modifies the form for creating a new basket in acquisitions so that the user's cursor is automatically placed in the first field, the basket name input.
Version(s) released in:
20.11.00
Attachments: Bug 26712: Set focus for cursor to basket name input box on basketheader.pl
Bug 26712: Set focus for cursor to basket name input box on basketheader.pl
Bug 26712: Set focus for cursor to basket name input box on basketheader.pl

Description Barbara Johnson 2020-10-16 15:58:01 UTC
When creating a new basket on basketheader.pl you have to click in the basket name input box, which is a required field, so that you can enter text.  It would be more efficient to set the focus for the cursor to always be in the basket name input box so that you could just begin typing and eliminate an extra click.
Comment 1 Owen Leonard 2020-10-19 14:29:16 UTC
Created attachment 111995 [details] [review]
Bug 26712: Set focus for cursor to basket name input box on basketheader.pl

This patch adds the "focus" class to the basket name field in the form
for creating a new basket in acquisitions.

To test, apply the patch and go to Acquisitions -> Vendor -> New basket.

 - Upon page load the cursor should be focused on the basket name field.
 - The same should be true if you edit an existing basket.
Comment 2 ByWater Sandboxes 2020-10-19 18:50:15 UTC
Created attachment 112010 [details] [review]
Bug 26712: Set focus for cursor to basket name input box on basketheader.pl

This patch adds the "focus" class to the basket name field in the form
for creating a new basket in acquisitions.

To test, apply the patch and go to Acquisitions -> Vendor -> New basket.

 - Upon page load the cursor should be focused on the basket name field.
 - The same should be true if you edit an existing basket.

Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov>
Comment 3 Katrin Fischer 2020-10-20 13:26:13 UTC
Created attachment 112037 [details] [review]
Bug 26712: Set focus for cursor to basket name input box on basketheader.pl

This patch adds the "focus" class to the basket name field in the form
for creating a new basket in acquisitions.

To test, apply the patch and go to Acquisitions -> Vendor -> New basket.

 - Upon page load the cursor should be focused on the basket name field.
 - The same should be true if you edit an existing basket.

Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Comment 4 Jonathan Druart 2020-11-03 09:59:03 UTC
Pushed to master for 20.11, thanks to everybody involved!
Comment 5 Lucas Gass 2020-11-16 20:57:43 UTC
enhancement will not be backported to 20.05.x