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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt (-5 / +5 lines)
Lines 357-368 Link Here
357
357
358
            $("#logout_form").submit(function(){
358
            $("#logout_form").submit(function(){
359
                clearTimeout(mainTimeout);
359
                clearTimeout(mainTimeout);
360
            [% IF Koha.Preference('SelfCheckReceiptPrompt') %]
360
                [% IF Koha.Preference('SelfCheckReceiptPrompt') %]
361
                if(confirm("Would you like to print a receipt?")){
361
                    if(confirm("Would you like to print a receipt?")){
362
                    window.open("/cgi-bin/koha/sco/printslip.pl?borrowernumber=[% borrowernumber %]&print=qslip");
362
                        window.open("/cgi-bin/koha/sco/printslip.pl?borrowernumber=[% borrowernumber %]&print=qslip");
363
     [% END %]
363
                    }
364
                [% END %]
364
365
365
                }
366
                return true;
366
                return true;
367
            });
367
            });
368
    });
368
    });
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/sco/sco-main.tt (-6 / +5 lines)
Lines 91-101 $(document).ready(function() { Link Here
91
    }));
91
    }));
92
    $("#logout_form").submit(function(){
92
    $("#logout_form").submit(function(){
93
        clearTimeout(mainTimeout);
93
        clearTimeout(mainTimeout);
94
   [% IF Koha.Preference('SelfCheckReceiptPrompt') %]
94
        [% IF Koha.Preference('SelfCheckReceiptPrompt') %]
95
        if(confirm("Would you like to print a receipt?")){
95
            if( confirm("Would you like to print a receipt?") ) {
96
            window.open("/cgi-bin/koha/sco/printslip.pl?borrowernumber=[% borrowernumber %]&print=qslip");
96
                window.open("/cgi-bin/koha/sco/printslip.pl?borrowernumber=[% borrowernumber %]&print=qslip");
97
   [%END %]
97
            }
98
        }
98
        [% END %]
99
        return true;
99
        return true;
100
    });
100
    });
101
});
101
});
102
- 

Return to bug 11415