if we're providing defaults, default focus to the first barcode field
authorJason Etheridge <jason@esilibrary.com>
Fri, 4 Mar 2011 06:02:16 +0000 (01:02 -0500)
committerJason Etheridge <jason@esilibrary.com>
Fri, 4 Mar 2011 17:23:04 +0000 (12:23 -0500)
Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js

index 5ba0e77..b468b0c 100644 (file)
@@ -417,6 +417,10 @@ g.render_barcode_entry = function(node,callnumber,count,ou_id) {
                 tb.select();
                 if (! g.first_focus) { g.first_focus = tb; }
             }
+            if (g.use_defaults && ! g.first_focus) {
+                g.first_focus = tb;
+                tb.focus();
+            }
             if (set_handlers) {
                 util.widgets.apply_vertical_tab_on_enter_handler( 
                     tb,