[Koha-bugs] [Bug 23076] Include OpacUserJS on OPAC maintenance page

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jun 7 14:16:14 CEST 2019


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

--- Comment #1 from Owen Leonard <oleonard at myacpl.org> ---
Created attachment 90414
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=90414&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.

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


More information about the Koha-bugs mailing list