Skip to content

Commit 3e4a07c

Browse files
dbriemstephanieleary
authored andcommitted
LP#2098903 Item Status Focus Is After Barcode When Not Found
If a barcode is not found after an item status search, the focus remains in the input after the barcode. This allows for a model change so the input contents will be selected after item status searches. Signed-off-by: Dan Briem <[email protected]> Signed-off-by: Stephanie Leary <[email protected]>
1 parent 725f9fb commit 3e4a07c

File tree

1 file changed

+3
-0
lines changed
  • Open-ILS/web/js/ui/default/staff/cat/item

1 file changed

+3
-0
lines changed

Open-ILS/web/js/ui/default/staff/cat/item/app.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,9 @@ function($scope , $q , $window , $location , $timeout , egCore , egNet , egGridD
421421
if (!args.barcode) return $q.when();
422422
$scope.context.itemNotFound = false;
423423

424+
// reset so the input can be auto-selected after the search
425+
$scope.context.selectBarcode = false;
426+
424427
//check to see if there are multiple barcodes in CSV format
425428
var barcodes = [];
426429
//split on commas and clean up barcodes

0 commit comments

Comments
 (0)