[Koha-patches] [PATCH 2/2] Slip print doesn't work on Webkit based browsers
Jared Camins-Esakov
jcamins at bywatersolutions.com
Sun Apr 10 17:44:05 CEST 2011
From: Tomas Cohen Arazi <tomascohen at gmail.com>
Fix the fix and a few more files
Signed-off-by: Jared Camins-Esakov <jcamins at bywatersolutions.com>
---
.../en/modules/members/moremember-receipt.tmpl | 2 +-
.../prog/en/modules/members/printfeercpt.tmpl | 4 +++-
.../prog/en/modules/members/printinvoice.tmpl | 4 +++-
3 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-receipt.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-receipt.tmpl
index e5069d4..cb7448f 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-receipt.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-receipt.tmpl
@@ -6,7 +6,7 @@
<script language="javascript">
- function printiThenClose() {
+ function printThenClose() {
window.print();
window.close();
}
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/printfeercpt.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/members/printfeercpt.tmpl
index b5155b9..540c361 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/printfeercpt.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/printfeercpt.tmpl
@@ -4,11 +4,13 @@
<link rel="shortcut icon" href="<!-- TMPL_IF NAME="IntranetFavicon" --><!-- TMPL_VAR NAME="IntranetFavicon" --><!-- TMPL_ELSE --><!-- TMPL_VAR NAME="themelang" -->/includes/favicon.ico<!-- /TMPL_IF -->" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR NAME="themelang" -->/css/printreceiptinvoice.css" />
<script language="javascript">
+ function printThenClose() {
window.print();
window.close();
+ }
</script>
</head>
-<body>
+<body onload="printThenClose();">
<div id="receipt">
<!-- The table with the account items -->
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/printinvoice.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/members/printinvoice.tmpl
index 62ebab1..515ae50 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/printinvoice.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/printinvoice.tmpl
@@ -4,11 +4,13 @@
<link rel="shortcut icon" href="<!-- TMPL_IF NAME="IntranetFavicon" --><!-- TMPL_VAR NAME="IntranetFavicon" --><!-- TMPL_ELSE --><!-- TMPL_VAR NAME="themelang" -->/includes/favicon.ico<!-- /TMPL_IF -->" type="image/x-icon" />
<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR NAME="themelang" -->/css/printreceiptinvoice.css" />
<script language="javascript">
+ function printThenClose() {
window.print();
window.close();
+ }
</script>
</head>
-<body>
+<body onload="printThenClose();">
<div id="receipt">
<!-- The table with the account items -->
--
1.7.2.3
More information about the Koha-patches
mailing list