From: Jason Etheridge Date: Fri, 4 Mar 2011 06:02:16 +0000 (-0500) Subject: if we're providing defaults, default focus to the first barcode field X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=bc43e8c2d250749559a9937000138229aed1f874;p=evergreen%2Fequinox.git if we're providing defaults, default focus to the first barcode field --- 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,