From 3e6c4007cff24c9c5a580e329a78a9f9b9df8c4d Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Mon, 5 Nov 2018 16:38:48 -0500 Subject: [PATCH] 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 Signed-off-by: Kathy Lussier 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 Signed-off-by: Kathy Lussier Signed-off-by: Terran McCanna Signed-off-by: Chris Sharp --- .../web/js/ui/default/staff/cat/catalog/app.js | 16 ++++++++-------- .../web/js/ui/default/staff/circ/renew/app.js | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) 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)); }); -- 2.43.2