Bug 5327 : Removing a broken test
[koha_fer] / koha-tmpl / intranet-tmpl / prog / en / modules / members / moremember-receipt.tt
index aa76755..4a85ccb 100644 (file)
@@ -5,11 +5,13 @@
  <link rel="stylesheet" type="text/css" href="[% themelang %]/css/print.css" />
 
 <script language="javascript">
+    function printThenClose() {
         window.print();
         window.close();
+    }
 </script>
 </head>
-<body>
+<body onload="printThenClose();">
 
 <div id="receipt">