KMAIN-255 - Set Focus to patron barcode text-box
authorBill Erickson <berickxx@gmail.com>
Wed, 29 Oct 2014 21:09:59 +0000 (17:09 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
    Cross-port: 746aaa4

KCLS/openils/var/templates_kcls/opac/parts/place_hold.tt2

index b7b1f61..5091736 100644 (file)
@@ -24,6 +24,7 @@
             </label>
             <input type="text" name="hold_usr" id="hold_usr_input" onchange="staff_hold_usr_barcode_changed();" onpaste="setTimeout(staff_hold_usr_barcode_changed,1);" onkeypress="return no_hold_submit(event)" autofocus /> <span id="patron_name"></span><span id="patron_usr_barcode_not_found" style="display: none">[% l('Patron barcode was not found') %]</span><br />
             <input type="hidden" id="staff_barcode" value="[% ctx.staff_recipient.card.barcode | html %]"/>
+            <script>document.getElementById('hold_usr_input').focus()</script>
             <span>
                 <input type="radio" id="hold_usr_is_requestor"
                     onchange="staff_hold_usr_input_disabler(this);"