webstaff: Propagate changes to barcode auto-gen defaults immediately
authorMike Rylander <mrylander@gmail.com>
Thu, 10 Sep 2015 19:08:07 +0000 (15:08 -0400)
committerJason Stephenson <jstephenson@mvlc.org>
Mon, 14 Sep 2015 19:44:22 +0000 (15:44 -0400)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/web/js/ui/default/staff/cat/volcopy/app.js

index d337512..9d4d088 100644 (file)
@@ -672,6 +672,14 @@ function($scope , $q , $window , $routeParams , $location , $timeout , egCore ,
     }
     $scope.fetchDefaults();
 
+    $scope.$watch('defaults.auto_gen_barcode', function (n,o) {
+        itemSvc.auto_gen_barcode = n
+    });
+
+    $scope.$watch('defaults.barcode_checkdigit', function (n,o) {
+        itemSvc.barcode_checkdigit = n
+    });
+
     $scope.dirty = false;
     $scope.$watch('dirty',
         function(newVal, oldVal) {