LP 1779467: Fix SyntaxError: missing ) after argument list
[working/Evergreen.git] / Open-ILS / web / js / ui / default / staff / cat / catalog / app.js
index 8bd06ad..c853cb8 100644 (file)
@@ -1675,22 +1675,22 @@ function($scope , $routeParams , $location , $window , $q , egCore , egHolds , e
         var copy_list = gatherSelectedRawCopies();
         if (copy_list.length == 0) return;
         egCirc.mark_discard(copy_list.map(function(cp) {
         var copy_list = gatherSelectedRawCopies();
         if (copy_list.length == 0) return;
         egCirc.mark_discard(copy_list.map(function(cp) {
-            return {id: cp.id(), barcode: cp.barcode()};}).then(function() {
-            holdinsSvcInst.fetchAgain().then(function() {
-                $scop.holdingsGridDataProvider.refresh();
+            return {id: cp.id(), barcode: cp.barcode()};})).then(function() {
+                holdingsSvcInst.fetchAgain().then(function() {
+                    $scope.holdingsGridDataProvider.refresh();
+                });
             });
             });
-        });
     }
 
     $scope.selectedHoldingsMissing = function () {
         var copy_list = gatherSelectedRawCopies();
         if (copy_list.length == 0) return;
         egCirc.mark_missing(copy_list.map(function(cp) {
     }
 
     $scope.selectedHoldingsMissing = function () {
         var copy_list = gatherSelectedRawCopies();
         if (copy_list.length == 0) return;
         egCirc.mark_missing(copy_list.map(function(cp) {
-            return {id: cp.id(), barcode: cp.barcode()};}).then(function() {
-            holdingsSvcInst.fetchAgain().then(function() {
-                $scope.holdingsGridDataProvider.refresh();
+            return {id: cp.id(), barcode: cp.barcode()};})).then(function() {
+                holdingsSvcInst.fetchAgain().then(function() {
+                    $scope.holdingsGridDataProvider.refresh();
+                });
             });
             });
-        });
     }
 
     $scope.selectedHoldingsCopyAlertsAdd = function() {
     }
 
     $scope.selectedHoldingsCopyAlertsAdd = function() {