]> git.evergreen-ils.org Git - working/Evergreen.git/commit
Make window.print() configurable. The "Mozilla Print" strategy is internally identif...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 27 Jan 2011 20:58:41 +0000 (20:58 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 27 Jan 2011 20:58:41 +0000 (20:58 +0000)
commitf3c0d032a2bad1d7647c4cb06769c132d450115b
treefc5ccc9f4cddb99d2901d4dd501cc981a9d602dd
parentc7c03f4358e6a5e74443e233e3f073032b9c370b
Make window.print() configurable.  The "Mozilla Print" strategy is internally identified as 'webBrowserPrint', and it uses XPCOM for printing the contents of an HTML document.  However, in some cases we override this with a 'window.print' strategy to workaround bugs.  A problem with this has been that an actual bare javascript window.print() does not honor any of configured "gPrintSettings".  However, it is informed by (and in turn informs) a Mozilla preference called print.print_printer.  Right now window.print (if used from within the JSAN util.print library) only gets called in when in the Default printer context/role.  So we force print.print_printer to equal the configured printer for the Default role.  Have I mentioned that I hate printing in Mozilla?

git-svn-id: svn://svn.open-ils.org/ILS/trunk@19316 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/xul/staff_client/chrome/content/util/print.js