From d5264aef6119c8b8ee80349558791ba084fdd79b Mon Sep 17 00:00:00 2001 From: pines Date: Sun, 6 May 2007 09:02:35 +0000 Subject: [PATCH] ignore focus errors git-svn-id: svn://svn.open-ils.org/ILS/trunk@7205 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/circ/checkout.xul | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/circ/checkout.xul b/Open-ILS/xul/staff_client/server/circ/checkout.xul index a57f4b93a3..1291a8e3e5 100644 --- a/Open-ILS/xul/staff_client/server/circ/checkout.xul +++ b/Open-ILS/xul/staff_client/server/circ/checkout.xul @@ -58,7 +58,7 @@ try { g.error.standard_unexpected_error_alert('circ/checkout.xul',E); } catch(F) { - alert('FIXME: circ/checkout.xul -> ' + E); + dump('FIXME: circ/checkout.xul -> ' + E + ' -> ' + F + '\n'); } } } @@ -66,13 +66,14 @@ function default_focus() { try { var x = document.getElementById('checkout_barcode_entry_textbox'); + if (!x) return; if (x.disabled) { document.getElementById('checkout_duedate_menu').inputField.focus(); } else { x.focus(); } } catch(E) { - g.error.sdump('D_ERROR','checkout default_focus(): ' + js2JSON(E)); + try { g.error.sdump('D_ERROR','checkout default_focus(): ' + js2JSON(E)); } catch(F) { dump('FIXME: circ/checkout.xul default_focus() -> ' + E + ' -> ' + F) } } } -- 2.11.0