debugging
authorpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 4 Sep 2006 17:16:15 +0000 (17:16 +0000)
committerpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 4 Sep 2006 17:16:15 +0000 (17:16 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5924 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/items.xul

index b3099fc..7d66ba5 100644 (file)
@@ -39,7 +39,7 @@
                                JSAN.errorLevel = "die"; // none, warn, or die
                                JSAN.addRepository('/xul/server/');
                                JSAN.use('util.error'); g.error = new util.error();
                                JSAN.errorLevel = "die"; // none, warn, or die
                                JSAN.addRepository('/xul/server/');
                                JSAN.use('util.error'); g.error = new util.error();
-                               g.error.sdump('D_TRACE','my_init() for items.xul');
+                               try { g.error.sdump('D_TRACE','my_init() for items.xul'); } catch(E) { dump(E); }
 
                                g.cgi = new CGI();
 
 
                                g.cgi = new CGI();
 
@@ -62,7 +62,7 @@
                        }
                }
 
                        }
                }
 
-               function default_focus() { try { var x = document.getElementById('noncat'); x.focus(); } catch(E) { g.error.sdump('D_ERROR','item.xul, default_focus: ' + E); } }
+               function default_focus() { try { var x = document.getElementById('noncat'); x.focus(); } catch(E) { try { g.error.sdump('D_ERROR','item.xul, default_focus: ' + E); } catch(F) { dump(E); } } }
 
        ]]>
        </script>
 
        ]]>
        </script>