[open-ils-commits] r19268 - trunk/Open-ILS/xul/staff_client/server/admin (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Jan 24 16:05:05 EST 2011
Author: phasefx
Date: 2011-01-24 16:05:00 -0500 (Mon, 24 Jan 2011)
New Revision: 19268
Modified:
trunk/Open-ILS/xul/staff_client/server/admin/printer_settings.js
Log:
make the Printer Settings Editor immune to the print.always_print_silent preference
Modified: trunk/Open-ILS/xul/staff_client/server/admin/printer_settings.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/admin/printer_settings.js 2011-01-24 20:29:32 UTC (rev 19267)
+++ trunk/Open-ILS/xul/staff_client/server/admin/printer_settings.js 2011-01-24 21:05:00 UTC (rev 19268)
@@ -39,9 +39,15 @@
g.printer_settings = function() {
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
+ var print_silent_pref = false;
+ if (g.prefs.prefHasUserValue('print.always_print_silent')) {
+ print_silent_pref = g.prefs.getBoolPref('print.always_print_silent');
+ }
+ g.prefs.setBoolPref('print.always_print_silent', false);
var w = get_contentWindow(document.getElementById('sample'));
g.print.NSPrint(w ? w : window, false, {});
g.print.save_settings();
+ g.prefs.setBoolPref('print.always_print_silent', print_silent_pref);
}
g.set_print_strategy = function(which) {
More information about the open-ils-commits
mailing list