From f924b51f1cc2a9b5140d2b0961c5f35b5cfa5f38 Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Mon, 17 Dec 2018 11:41:18 -0500 Subject: [PATCH] Use a function. --- Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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); } -- 2.11.0