From 4c1acdc02e3ba5de26356eabee64532c4fa138f3 Mon Sep 17 00:00:00 2001 From: phasefx Date: Tue, 31 Aug 2010 20:08:09 +0000 Subject: [PATCH] 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 --- Open-ILS/xul/staff_client/chrome/content/util/browser.js | 1 + 1 file changed, 1 insertion(+) 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) -- 2.11.0