Summary: | Set focus for cursor to Selector when adding a new audio alert | ||
---|---|---|---|
Product: | Koha | Reporter: | Katrin Fischer <katrin.fischer> |
Component: | Templates | Assignee: | Owen Leonard <oleonard> |
Status: | CLOSED FIXED | QA Contact: | Katrin Fischer <katrin.fischer> |
Severity: | minor | ||
Priority: | P5 - low | CC: | arthur.suzuki, lucas, martin.renvoize, oleonard, wainuiwitikapark |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | Trivial patch |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: |
23.05.00,22.11.04,22.05.11,21.11.19
|
|
Circulation function: | |||
Bug Depends on: | |||
Bug Blocks: | 31411 | ||
Attachments: |
Bug 31413: Set focus for cursor to Selector when adding a new audio alert
Bug 31413: Set focus for cursor to Selector when adding a new audio alert Bug 31413: Set focus for cursor to Selector when adding a new audio alert |
Description
Katrin Fischer
2022-08-18 22:10:08 UTC
The focus class on the input field has no effect here. Owen, maybe you could take a look and make a suggestion? Created attachment 146266 [details] [review] Bug 31413: Set focus for cursor to Selector when adding a new audio alert This patch adds a step to the process of displaying the new audio alert form so that focus will be set to the first field when the form has finished appearing. The typical "focus" class only works on elements which are present in the initial DOM when the page is displayed. To test, apply the patch and go to Administration -> Audio alerts. Click the "New alert" button. When the form appears cursor focus should be on the "Selector" field. Also test the edit process: When editing an existing alert there should not be automatic cursor focus. Created attachment 146279 [details] [review] Bug 31413: Set focus for cursor to Selector when adding a new audio alert This patch adds a step to the process of displaying the new audio alert form so that focus will be set to the first field when the form has finished appearing. The typical "focus" class only works on elements which are present in the initial DOM when the page is displayed. To test, apply the patch and go to Administration -> Audio alerts. Click the "New alert" button. When the form appears cursor focus should be on the "Selector" field. Also test the edit process: When editing an existing alert there should not be automatic cursor focus. Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Created attachment 147355 [details] [review] Bug 31413: Set focus for cursor to Selector when adding a new audio alert This patch adds a step to the process of displaying the new audio alert form so that focus will be set to the first field when the form has finished appearing. The typical "focus" class only works on elements which are present in the initial DOM when the page is displayed. To test, apply the patch and go to Administration -> Audio alerts. Click the "New alert" button. When the form appears cursor focus should be on the "Selector" field. Also test the edit process: When editing an existing alert there should not be automatic cursor focus. Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> Pushed to master for 23.05. Nice work everyone, thanks! Nice work everyone! Pushed to stable for 22.11.x Backported to 22.05.x for upcoming 22.05.11 applied to 21.11 for 21.11.19 Not backported to 21.05.x |