https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23076
Maryse Simard <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #90414|0 |1 is obsolete| | --- Comment #2 from Maryse Simard <[email protected]> --- Created attachment 90430 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=90430&action=edit Bug 23076: Include OpacUserJS on OPAC maintenance page This patch coverts the syntax for embedding OpacUserJS in the global include file so that it uses 'Koha.Preference' syntax. This makes the data available in templates, like the OPAC maintenance page, to which the preference data has not been explicitly provided. To reproduce: Add some JavaScript to the OPACUserJS system preference which will let you know it's working. For instance: alert("OPACUserJS!"); Turn on the OPAC maintenance message using the OpacMaintenance system preference. Navigate to the OPAC. You should see the system maintenance page but you should not see an alert. To test, apply the patch and reload the OPAC page. Your alert should show. Signed-off-by: Maryse Simard <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] http://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/
