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>
This commit is contained in:
parent
5b21b42afa
commit
6fdbf5cce0
|
|
@ -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