LP 1779467: Fix SyntaxError: missing ) after argument list
authorJason Stephenson <jason@sigio.com>
Mon, 5 Nov 2018 21:38:48 +0000 (16:38 -0500)
committerJason Stephenson <jason@sigio.com>
Sun, 3 Feb 2019 15:46:16 +0000 (10:46 -0500)
Missing parenthesis in Open-ILS/web/js/ui/default/staff/cat/catalog/app.js
caused the titular error when searching the catalog.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Kathy Lussier <klussier@masslnc.org>
Open-ILS/web/js/ui/default/staff/cat/catalog/app.js

index 3246f25..26e6403 100644 (file)
@@ -1669,22 +1669,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) {
-            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) {
-            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() {