LP1904036 Patron edit replace barcode fixes
authorBill Erickson <berickxx@gmail.com>
Wed, 26 Jan 2022 17:09:53 +0000 (12:09 -0500)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 28 Oct 2022 00:13:40 +0000 (20:13 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/circ/patron/edit.component.ts

index f928296..c5afd22 100644 (file)
@@ -1611,6 +1611,13 @@ export class EditComponent implements OnInit, AfterViewInit {
 
         this.patron.card(card);
         this.patron.cards().push(card);
+
+        // Focus the barcode input
+        setTimeout(() => {
+            this.emitSaveState();
+            const node = document.getElementById('ac-barcode-input');
+            node.focus();
+        });
     }
 
     showBarcodes() {