From: phasefx Date: Tue, 31 Aug 2010 20:08:09 +0000 (+0000) Subject: printable_output() support in util.browser had stopped working, and this fixes that... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4c1acdc02e3ba5de26356eabee64532c4fa138f3;p=evergreen%2Fbjwebb.git 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 git-svn-id: svn://svn.open-ils.org/ILS/trunk@17414 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/chrome/content/util/browser.js b/Open-ILS/xul/staff_client/chrome/content/util/browser.js index 5759e36a6..b91106da8 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/browser.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/browser.js @@ -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)