From: Jason Etheridge Date: Wed, 30 Jan 2013 19:10:19 +0000 (-0500) Subject: set title during receipt/slip printing X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=d350900176a2830061649877101390e44a8018d3;p=contrib%2FConifer.git 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 --- 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); }