[Koha-bugs] [Bug 32999] Click handler to show QR code in OPAC lacks preventDefault

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Feb 17 17:22:43 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32999

--- Comment #1 from Owen Leonard <oleonard at myacpl.org> ---
Created attachment 146857
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=146857&action=edit
Bug 32999: Click handler to show QR code in OPAC lacks preventDefault

This patch adds "preventDefault()" to the click handler for showing
the bibliographic detail QR code. This prevents the page from scrolling
to the top when the user clicks the link.

To test, apply the patch and make sure the OPACDetailQRCode system
preference is enabled.

Locate a bibliographic record and view the detail page. If necessary,
reduce the size of your browser window so that you have to scroll down
a bit to bring the "Send to device" menu item into view in the sidebar.
Click the link to confirm that it shows the QR code and that the page
doesn't jump to the top.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list