[Bug 29613] New: Set focus for cursor to barcode field on course reserves add items and batch add items pages
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29613 Bug ID: 29613 Summary: Set focus for cursor to barcode field on course reserves add items and batch add items pages Change sponsored?: --- Product: Koha Version: 21.05 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Course reserves Assignee: koha-bugs@lists.koha-community.org Reporter: eliana@flo.org QA Contact: testopia@bugs.koha-community.org When clicking on the "Add reserves" or "batch add reserves" buttons in the course reserves module, the cursor focuses on the catalog search bar instead of the box where you scan in the barcodes. I fixed this locally by adding the following to IntranetUserJS: //Switch active cursor to correct box for adding course reserves $(document).ready(function(){ if (window.location.href.indexOf("cgi-bin/koha/course_reserves/add_items.pl") > -1) { $('#barcode').focus(); } }); $(document).ready(function(){ if (window.location.href.indexOf("cgi-bin/koha/course_reserves/batch_add_items.pl")
-1) { $('#barcodes').focus(); } });
-- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29613 Eliana <eliana@flo.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|enhancement |trivial -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29613 --- Comment #1 from Eliana <eliana@flo.org> --- Created attachment 128137 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=128137&action=edit Screenshot of current behavior -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29613 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #128137|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29613 --- Comment #2 from Owen Leonard <oleonard@myacpl.org> --- Created attachment 128213 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=128213&action=edit Screenshot of current behavior -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29613 --- Comment #3 from Owen Leonard <oleonard@myacpl.org> --- I can't reproduce this problem in master or 21.05.x -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29613 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |WORKSFORME Status|NEW |RESOLVED --- Comment #4 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Same for me, I tested this on 20.11 and the current development version. The cursor is always in the barcode field for me. Eliana, please provide your exact version if this problem still persists. Please also try to remove all your changes from OpacUserJs and test without them to make sure it's not another change interfering. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29613 --- Comment #5 from Eliana <eliana@flo.org> --- Katrin was right, it was another bit of our JQuery that was causing this issue. My bad! This bug is no long relevant. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29613 --- Comment #6 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Thx for the feedback, Eliana, had this happen myself before. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org