help with debug
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 1 Oct 2005 22:25:36 +0000 (22:25 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sat, 1 Oct 2005 22:25:36 +0000 (22:25 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@1885 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/staff_client/chrome/content/evergreen/util/error.js
Evergreen/staff_client/chrome/content/evergreen/util/print.js

index a22c4b4..a7cfb4e 100644 (file)
@@ -3,6 +3,7 @@ sdump('D_TRACE',"Loading error.js\n");
 var consoleService = Components.classes['@mozilla.org/consoleservice;1']
        .getService(Components.interfaces.nsIConsoleService);
 
+var printDebug = true;
 var consoleDump = true;
 var debugDump = true;
 var arg_dump_full = false;
index a4e1538..502047e 100644 (file)
@@ -202,7 +202,9 @@ function sPrint(s,silent) {
        w.minimize(); mw.minimize();
        setTimeout(
                function() {
-                       NSPrint(w,silent); w.minimize(); w.close(); mw.minimize();
+                       if (!mw.printDebug) {
+                               NSPrint(w,silent); w.minimize(); w.close(); mw.minimize();
+                       }
                },0
        );
 }