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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt (-2 / +1 lines)
Lines 515-521 Link Here
515
                        [% IF Koha.Preference('SelfCheckReceiptPrompt') %]
515
                        [% IF Koha.Preference('SelfCheckReceiptPrompt') %]
516
                            var confirmStart = Date.now();
516
                            var confirmStart = Date.now();
517
                            confirmModal("", _("Would you like to print a receipt?"), _("Print receipt and end session"), _("End session"), function(result) {
517
                            confirmModal("", _("Would you like to print a receipt?"), _("Print receipt and end session"), _("End session"), function(result) {
518
                                if ( result && (Date.now() - confirmStart) < [% Koha.Preference('SelfCheckTimeout') | html %] ) {
518
                                if ( result && (Date.now() - confirmStart) < ( [% Koha.Preference('SelfCheckTimeout') | html %] * 1000 ) ) {
519
                                    var win = window.open("/cgi-bin/koha/sco/printslip.pl?print=qslip");
519
                                    var win = window.open("/cgi-bin/koha/sco/printslip.pl?print=qslip");
520
                                    location.href = '/cgi-bin/koha/sco/sco-main.pl?op=logout';
520
                                    location.href = '/cgi-bin/koha/sco/sco-main.pl?op=logout';
521
                                } else {
521
                                } else {
522
- 

Return to bug 40158