Merge branch 'bug_8559' into 3.12-master
[koha_fer] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / printslip.tt
index a790069..7b29d4e 100644 (file)
@@ -8,13 +8,17 @@
 [% END %]
 
 <script language="javascript">
-    function printThenClose() {
-        window.print();
-        window.close();
-    }
+[% IF ( IntranetSlipPrinterJS ) %]
+    [% IntranetSlipPrinterJS %]
+[% ELSE %]
+     function printThenClose() {
+         window.print();
+         window.close();
+     }
+[% END %]
 </script>
 </head>
-<body onload="printThenClose();">
+<body id="circ_printslip" class="circ" onload="printThenClose();">
 <div id="receipt">
 
 [% IF plain %]