From aa0e96337ac606f970620129bbc16a1772534a28 Mon Sep 17 00:00:00 2001 From: phasefx Date: Sun, 24 Jul 2005 18:57:27 +0000 Subject: [PATCH] xulrunner brings old print routines. Let's try this in windows... git-svn-id: svn://svn.open-ils.org/ILS/trunk@1384 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../staff_client/chrome/content/evergreen/util/print.js | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/Evergreen/staff_client/chrome/content/evergreen/util/print.js b/Evergreen/staff_client/chrome/content/evergreen/util/print.js index 5ba79fa7c8..3ad45426a7 100644 --- a/Evergreen/staff_client/chrome/content/evergreen/util/print.js +++ b/Evergreen/staff_client/chrome/content/evergreen/util/print.js @@ -1,11 +1,21 @@ sdump('D_TRACE','Loading print.js\n'); +var print_crlf = '
\r\n'; + +// Higher-level + +function print_checkout_receipt(params) { + + +} + +// Lower-level + function sPrint(s) { //var w = window.open('about:blank','print_win','alwaysLowered,minimizable,resizable,height=100,width=100,sizemode=minimized'); - var w = SafeWindowOpen('about:blank','print_win','alwaysLowered,minimizable,resizable,height=100,width=100,sizemode=minimized'); + //var w = SafeWindowOpen('about:blank','print_win','alwaysLowered,minimizable,resizable,height=100,width=100,sizemode=minimized'); + var w = new_window('data:text/html,' + s + '\r\n'); this.focus(); - w.document.write(s); - //w.print(); NSPrint(w); w.close(); } -- 2.11.0