printable_output() support in util.browser had stopped working, and this fixes that...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 31 Aug 2010 20:08:09 +0000 (20:08 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 31 Aug 2010 20:08:09 +0000 (20:08 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@17414 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/util/browser.js

index 5759e36..b91106d 100644 (file)
@@ -59,6 +59,7 @@ util.browser.prototype = {
                                     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)