Bug 6126 - [3.2.x] Slip print doesn't work on Webkit based browsers
authorTomas Cohen Arazi <tomascohen@gmail.com>
Mon, 18 Apr 2011 14:25:07 +0000 (11:25 -0300)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Mon, 18 Apr 2011 21:38:11 +0000 (17:38 -0400)
Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-receipt.tmpl

index 83bd151..cc7fe58 100644 (file)
@@ -4,11 +4,13 @@
 <link rel="shortcut icon" href="<!-- TMPL_VAR NAME="themelang" -->/includes/favicon.ico" type="image/x-icon" />
 <link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR NAME="themelang" -->/css/print.css" />
 <script language="javascript">
+    function printThenClose() {
         window.print();
         window.close();
+    }
 </script>
 </head>
-<body>
+<body onload=="printThenClose();">
 
 <div id="receipt">