From d350900176a2830061649877101390e44a8018d3 Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Wed, 30 Jan 2013 14:10:19 -0500 Subject: [PATCH] set title during receipt/slip printing This is to workaround a bug in CUPS where long window titles will cause the print job to fail. Signed-off-by: Jason Etheridge Signed-off-by: Ben Shum --- Open-ILS/xul/staff_client/chrome/content/util/print.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Open-ILS/xul/staff_client/chrome/content/util/print.js b/Open-ILS/xul/staff_client/chrome/content/util/print.js index f79c555496..ba00a6eeec 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/print.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/print.js @@ -175,7 +175,7 @@ util.print.prototype = { my_prefix = xulG.url_prefix(my_prefix); } } - var print_url = '' + var print_url = 'EG' + '' + ''; if(this.data.hash.aous['print.custom_js_file']) { @@ -297,7 +297,7 @@ util.print.prototype = { if (params.sample_frame) { var jsrc = 'data:text/javascript,' + encodeURIComponent('var params = { "data" : ' + js2JSON(params.data) + ', "list" : ' + js2JSON(params.list) + '};'); - params.sample_frame.setAttribute('src','data:text/html;charset=utf-8,' + encodeURIComponent('' + s + '')); + params.sample_frame.setAttribute('src','data:text/html;charset=utf-8,' + encodeURIComponent('EG' + s + '')); } else { this.simple(s,params); } -- 2.11.0