]> git.koha-community.org Git - koha.git/commit
Bug 32999: Click handler to show QR code in OPAC lacks preventDefault
authorOwen Leonard <oleonard@myacpl.org>
Fri, 17 Feb 2023 16:07:36 +0000 (16:07 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 20 Feb 2023 12:54:16 +0000 (09:54 -0300)
commit5ba3eea4959cc9a89ff21b92fb12c342fed973d7
tree1e3d20e4affdbcc2f2bf104c0d0730b00f5650ad
parentd18772c3c28a339e3f4b59628a477e9c7603e3e0
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.

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt