[Koha-bugs] [Bug 34711] Remove use of onclick for opac-privacy.pl
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Sep 5 07:00:58 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34711
--- Comment #1 from David Cook <dcook at prosentient.com.au> ---
Created attachment 155210
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=155210&action=edit
Bug 34711: Remove use of onclick for opac-privacy.pl
This change removes the "onclick" attribute for the buttons
on opac-privacy.pl.
Note: The Javascript is placed in a separate file, which is
the preferred way for Javascript to be handled by Content-Security-Policy
Test plan:
0. Apply the patch
1. Go to
http://localhost:8081/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=OPACPrivacy
2. Set syspref to "Allow"
3. Go to http://localhost:8080/cgi-bin/koha/opac-privacy.pl
4. The confirmation modal appears and "OK" and "Cancel" buttons work as
expected
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list