needless timeout
authorpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 25 Aug 2006 17:52:22 +0000 (17:52 +0000)
committerpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 25 Aug 2006 17:52:22 +0000 (17:52 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5679 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/circ/checkout.xul

index 547a6ce..6e0d249 100644 (file)
                }
 
                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() {