Bug 4951 - Print page doesn't close after print This patch adds the print/close functionality present on all other slips to the full page account summary.

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
This commit is contained in:
Liz Rea 2011-04-27 12:59:41 -05:00 committed by Chris Cormack
parent c5b1c39b80
commit fcdf50af6e
1 changed files with 8 additions and 0 deletions

View 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>