Bug 6005: Fixes Transit slips cause FF4 to display "prevent this page from opening...
authorroot <root@lists.nekls.org>
Wed, 30 Mar 2011 14:44:59 +0000 (10:44 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Thu, 31 Mar 2011 08:56:09 +0000 (21:56 +1300)
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>

koha-tmpl/intranet-tmpl/prog/en/modules/circ/hold-transfer-slip.tmpl

index 4b13bef..fe2546e 100644 (file)
@@ -2,12 +2,14 @@
 <title>Koha -- Circulation: Transfers</title>
 <!-- TMPL_INCLUDE NAME="doc-head-close-receipt.inc" -->
 <script language="javascript">
+function printandclose()
+{
 window.print();
 window.close();
+}
 </script>
 </head>
-<body onload="window.print();">
-<div id="main">
+<body onload="printandclose();"><div id="main">
 
 <!-- TMPL_LOOP NAME="reservedata" -->