From: Jason Stephenson Date: Mon, 17 Dec 2018 16:41:18 +0000 (-0500) Subject: Use a function. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f924b51f1cc2a9b5140d2b0961c5f35b5cfa5f38;p=working%2FEvergreen.git Use a function. --- 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 79747f37f9..6172c6625f 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) { ''+ + ' focus-me="focusBarcode()"/>'+ '
{{duplicate_barcode_string}}
'+ '
{{empty_barcode_string}}
'+ ''+ @@ -506,10 +506,14 @@ function(egCore , $q) { $scope.empty_barcode = false; $scope.duplicate_barcode_string = window.duplicate_barcode_string; $scope.empty_barcode_string = window.empty_barcode_string; - $scope.focusBarcode = (!$scope.copy) ? true : false; + if (!$scope.copy.barcode()) $scope.copy.empty_barcode = true; + $scope.focusBarcode() { + return $scope.copy.empty_barcode; + } + $scope.nextBarcode = function (i) { $scope.focusNext(i, $scope.barcode); }