View | Details | Raw Unified | Return to bug 22378
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt (-2 / +2 lines)
Lines 3-8 Link Here
3
[% USE Koha %]
3
[% USE Koha %]
4
[% USE KohaDates %]
4
[% USE KohaDates %]
5
[% USE AudioAlerts %]
5
[% USE AudioAlerts %]
6
[% USE To %]
6
[% USE Price %]
7
[% USE Price %]
7
[% INCLUDE 'doc-head-open.inc' %]
8
[% INCLUDE 'doc-head-open.inc' %]
8
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha [% END %] &rsaquo; Self checkout </title>
9
<title>[% IF ( LibraryNameTitle ) %][% LibraryNameTitle | html %][% ELSE %]Koha [% END %] &rsaquo; Self checkout </title>
Lines 406-412 Link Here
406
            return true;
407
            return true;
407
        }
408
        }
408
        [% IF Koha.Preference('AudioAlerts') %]
409
        [% IF Koha.Preference('AudioAlerts') %]
409
            var AUDIO_ALERTS = JSON.parse( '[% AudioAlerts.AudioAlerts | replace( "'", "\\'" ) | replace( '"', '\\"' ) | html %]' );
410
            var AUDIO_ALERTS = JSON.parse( "[% To.json(AudioAlerts.AudioAlerts) | $raw %]" );
410
            $( document ).ready(function() {
411
            $( document ).ready(function() {
411
                if ( AUDIO_ALERTS ) {
412
                if ( AUDIO_ALERTS ) {
412
                    for ( var k in AUDIO_ALERTS ) {
413
                    for ( var k in AUDIO_ALERTS ) {
413
- 

Return to bug 22378