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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/slip-print.inc (-1 / +4 lines)
Lines 6-12 Link Here
6
[% ELSE %]
6
[% ELSE %]
7
    $( window ).load(function() {
7
    $( window ).load(function() {
8
        window.print();
8
        window.print();
9
        setTimeout('window.close()', 1);
9
        window.onafterprint = function () {
10
            window.close();
11
        }
12
        setTimeout('window.close()', 1000); //Hack from Chrome < 63
10
    });
13
    });
11
[% END %]
14
[% END %]
12
</script>
15
</script>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/slip-print.inc (-2 / +4 lines)
Lines 5-11 Link Here
5
[% ELSE %]
5
[% ELSE %]
6
    $( window ).load(function() {
6
    $( window ).load(function() {
7
        window.print();
7
        window.print();
8
        setTimeout('window.close()', 1);
8
        window.onafterprint = function () {
9
            window.close();
10
        }
11
        setTimeout('window.close()', 1000); //Hack from Chrome < 63
9
    });
12
    });
10
[% END %]
13
[% END %]
11
</script>
14
</script>
12
- 

Return to bug 27282