Bugzilla – Attachment 121687 Details for
Bug 28488
Javascript error in self-checkout (__ is not defined)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28488: Javascript error in self-checkout (__ is not defined)
Bug-28488-Javascript-error-in-self-checkout--is-no.patch (text/plain), 1.65 KB, created by
Owen Leonard
on 2021-06-07 16:10:58 UTC
(
hide
)
Description:
Bug 28488: Javascript error in self-checkout (__ is not defined)
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2021-06-07 16:10:58 UTC
Size:
1.65 KB
patch
obsolete
>From 8dcd5ddab08e487073943a79c0148f6779d20c17 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 7 Jun 2021 16:02:35 +0000 >Subject: [PATCH] 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. >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt | 6 ++++++ > 1 file changed, 6 insertions(+) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt >index 339a0818e7..33d1d90b3e 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt >@@ -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();"> >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 28488
:
121687
|
121695
|
121865