Bug 4951 - Print page doesn't close after print This patch adds the print/close funct...
authorLiz Rea <lrea@nekls.org>
Wed, 27 Apr 2011 17:59:41 +0000 (12:59 -0500)
committerChris Cormack <chrisc@catalyst.net.nz>
Sun, 10 Jul 2011 08:25:39 +0000 (20:25 +1200)
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-print.tt

index 0452614..f84052b 100644 (file)
@@ -3,6 +3,14 @@
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 <link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% themelang %]/includes/favicon.ico[% END %]" type="image/x-icon" />
 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/print.css" />
+<script language="javascript">
+    function printThenClose() {
+        window.print();
+        window.close();
+    }
+</script>
+<body onload="printThenClose();">
+
 </head>
 <body>