[Koha-bugs] [Bug 29613] New: Set focus for cursor to barcode field on course reserves add items and batch add items pages
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Dec 1 17:54:20 CET 2021
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 at lists.koha-community.org
Reporter: eliana at flo.org
QA Contact: testopia at 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.
More information about the Koha-bugs
mailing list