From: Jason Stephenson <jason@sigio.com> Date: Mon, 5 Nov 2018 21:38:48 +0000 (-0500) Subject: LP 1779467: Fix SyntaxError: missing ) after argument list X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3e6c4007cff24c9c5a580e329a78a9f9b9df8c4d;p=evergreen%2Fjoelewis.git LP 1779467: Fix SyntaxError: missing ) after argument list 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> LP 1779467: Fix typo in circ/renew/app.js. Had copyies for copies in one location and this prevented marking an item as Discard/Weed from working on the renew item interface. Signed-off-by: Jason Stephenson <jason@sigio.com> Signed-off-by: Kathy Lussier <klussier@masslnc.org> Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org> Signed-off-by: Chris Sharp <csharp@georgialibraries.org> --- diff --git a/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js b/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js index 8bd06adc82..c853cb8686 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/catalog/app.js @@ -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) { - 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() { diff --git a/Open-ILS/web/js/ui/default/staff/circ/renew/app.js b/Open-ILS/web/js/ui/default/staff/circ/renew/app.js index e4b7858faf..86665574da 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/renew/app.js +++ b/Open-ILS/web/js/ui/default/staff/circ/renew/app.js @@ -183,7 +183,7 @@ function($scope , $window , $location , egCore , egGridDataProvider , egCirc) { } $scope.showMarkDiscard = function(items) { - var copyies = []; + var copies = []; angular.forEach(items, function(item) { if (item.acp) copies.push(egCore.idl.toHash(item.acp)); });