Bug 25002: JS Includes should be wrapped with template comments
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / includes / slip-print.inc
1 [% USE raw %]
2 <!-- slip-print.inc -->
3 <script>
4 [% IF ( Koha.Preference('IntranetSlipPrinterJS') ) %]
5     [% Koha.Preference('IntranetSlipPrinterJS') | $raw %]
6 [% ELSE %]
7     $( window ).load(function() {
8         window.print();
9         setTimeout('window.close()', 1);
10     });
11 [% END %]
12 </script>
13 <!-- / slip-print.inc -->