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: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]

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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to