Bug 28488: Javascript error in self-checkout (__ is not defined)
This patch adds inclusion of the internationalization JavaScript which
is required by the newest version of the DataTables include. It
references the double-underscore function provided by i18n.js.
To test, apply the patch and log into the self-checkout system as a user
with checkouts. The table of checkouts should display correctly and
there should be no JavaScript errors in the console.
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 191a63111a)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
a0bd7d7c5a
commit
8f99bc6350
|
|
@ -25,8 +25,14 @@
|
|||
[% IF ( Koha.Preference('OPACUserCSS') ) %]<style>[% Koha.Preference('OPACUserCSS') | $raw %]</style>[% END %]
|
||||
[% IF ( Koha.Preference('SCOUserCSS') ) %]<style>[% Koha.Preference('SCOUserCSS') | $raw %]</style>[% END %]
|
||||
<script>
|
||||
var Koha = {};
|
||||
function _(s) { return s } // dummy function for gettext
|
||||
</script>
|
||||
[% IF lang && lang != 'en' %]
|
||||
[% Asset.js(lang _ '/js/locale_data.js') | $raw %]
|
||||
[% END %]
|
||||
[% Asset.js('js/Gettext.js') | $raw %]
|
||||
[% Asset.js('js/i18n.js') | $raw %]
|
||||
[% Asset.js("lib/modernizr.min.js") | $raw %]
|
||||
</head>
|
||||
<body id="sco_main" class="sco" onload="dofocus();" onunload="mungeHistory();">
|
||||
|
|
|
|||
Loading…
Reference in New Issue