From: pines Date: Fri, 25 Aug 2006 17:52:22 +0000 (+0000) Subject: needless timeout X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=cdb3fc5880544a8f67cad7de02a38d1e177de1b6;p=evergreen%2Fpines.git needless timeout git-svn-id: svn://svn.open-ils.org/ILS/trunk@5679 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/server/circ/checkout.xul b/Open-ILS/xul/staff_client/server/circ/checkout.xul index 547a6ce746..6e0d249813 100644 --- a/Open-ILS/xul/staff_client/server/circ/checkout.xul +++ b/Open-ILS/xul/staff_client/server/circ/checkout.xul @@ -64,20 +64,16 @@ } function default_focus() { - setTimeout( - function() { - try { - var x = document.getElementById('checkout_barcode_entry_textbox'); - 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)); - } - }, 0 - ); + try { + var x = document.getElementById('checkout_barcode_entry_textbox'); + 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)); + } } function refresh() {