From: Jason Stephenson Date: Tue, 18 Dec 2018 14:26:11 +0000 (-0500) Subject: Lp 1752968: Select content when focusing on the barcode field. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5f5e6244913ecf5d7fabb48cba760f4e1dad406d;p=working%2FEvergreen.git Lp 1752968: Select content when focusing on the barcode field. Signed-off-by: Jason Stephenson --- diff --git a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js index b99672c4a9..aaf07ce4b4 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js @@ -489,7 +489,7 @@ function(egCore , $q) { ''+ + ' ng-focus="selectOnFocus($event)" autofocus/>'+ '
{{duplicate_barcode_string}}
'+ '
{{empty_barcode_string}}
'+ ''+ @@ -509,6 +509,11 @@ function(egCore , $q) { if (!$scope.copy.barcode()) $scope.copy.empty_barcode = true; + $scope.selectOnFocus = function($event) { + if (!$scope.copy.empty_barcode) + $event.target.select(); + } + $scope.nextBarcode = function (i) { $scope.focusNext(i, $scope.barcode); }