[open-ils-commits] r17415 - branches/rel_2_0/Open-ILS/xul/staff_client/chrome/content/util (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Aug 31 16:09:13 EDT 2010
Author: phasefx
Date: 2010-08-31 16:09:08 -0400 (Tue, 31 Aug 2010)
New Revision: 17415
Modified:
branches/rel_2_0/Open-ILS/xul/staff_client/chrome/content/util/browser.js
Log:
printable_output() support in util.browser had stopped working, and this fixes that. If an interface embedded in util.browser has a printable_output() function, the text output from that function should be printed, instead of a direct print attempt against the content window
Modified: branches/rel_2_0/Open-ILS/xul/staff_client/chrome/content/util/browser.js
===================================================================
--- branches/rel_2_0/Open-ILS/xul/staff_client/chrome/content/util/browser.js 2010-08-31 20:08:09 UTC (rev 17414)
+++ branches/rel_2_0/Open-ILS/xul/staff_client/chrome/content/util/browser.js 2010-08-31 20:09:08 UTC (rev 17415)
@@ -59,6 +59,7 @@
if (typeof content.printable_output == 'function') {
print_params.msg = content.printable_output();
print_params.content_type = 'text/plain';
+ content = print_params.msg;
}
JSAN.use('OpenILS.data'); var data = new OpenILS.data(); data.stash_retrieve();
// Override the print strategy temporarily if it's not set or is equal to webBrowserPrint (which is buggy here)
More information about the open-ils-commits
mailing list