From bc43e8c2d250749559a9937000138229aed1f874 Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Fri, 4 Mar 2011 01:02:16 -0500 Subject: [PATCH] if we're providing defaults, default focus to the first barcode field --- Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js b/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js index 5ba0e77152..b468b0cd8b 100644 --- a/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js +++ b/Open-ILS/xul/staff_client/server/cat/volume_copy_creator.js @@ -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, -- 2.11.0