[open-ils-commits] r17414 - trunk/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:08:15 EDT 2010


Author: phasefx
Date: 2010-08-31 16:08:09 -0400 (Tue, 31 Aug 2010)
New Revision: 17414

Modified:
   trunk/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: trunk/Open-ILS/xul/staff_client/chrome/content/util/browser.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/util/browser.js	2010-08-31 19:49:03 UTC (rev 17413)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/util/browser.js	2010-08-31 20:08:09 UTC (rev 17414)
@@ -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