From a1c56b40b373b59204a04254ff8ca581f2349b40 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 19 May 2022 13:52:14 -0400 Subject: [PATCH] LP#1968082: (follow-up) tidy up whitespace Signed-off-by: Galen Charlton --- .../web/js/ui/default/staff/cat/bucket/copy/app.js | 46 +++++++++++----------- 1 file changed, 22 insertions(+), 24 deletions(-) diff --git a/Open-ILS/web/js/ui/default/staff/cat/bucket/copy/app.js b/Open-ILS/web/js/ui/default/staff/cat/bucket/copy/app.js index c453cb9471..442c3a1ac6 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/bucket/copy/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/bucket/copy/app.js @@ -264,25 +264,24 @@ function($scope, $location, $q, $timeout, $uibModal, bucketSvc.bucketNeedsRefresh = true; var ids = recs.map(function(rec) { return rec.id; }); - - egCore.net.request( - 'open-ils.actor', - 'open-ils.actor.container.item.create.batch', - egCore.auth.token(), 'copy', - bucketSvc.currentBucket.id(), ids - - ).then( - null, // complete - null, // error - function(resp) { - // HACK: add the IDs of the added items so that the size - // of the view list will grow (and update any UI looking at - // the list size). The data stored is inconsistent, but since - // we are forcing a bucket refresh on the next rendering of - // the view pane, the list will be repaired. - bucketSvc.currentBucket.items().push(resp); - } - ) + + egCore.net.request( + 'open-ils.actor', + 'open-ils.actor.container.item.create.batch', + egCore.auth.token(), 'copy', + bucketSvc.currentBucket.id(), ids + ).then( + null, // complete + null, // error + function(resp) { + // HACK: add the IDs of the added items so that the size + // of the view list will grow (and update any UI looking at + // the list size). The data stored is inconsistent, but since + // we are forcing a bucket refresh on the next rendering of + // the view pane, the list will be repaired. + bucketSvc.currentBucket.items().push(resp); + } + ); } $scope.openCreateBucketDialog = function() { @@ -548,17 +547,16 @@ function($scope, $q , $routeParams , $timeout , $window , $uibModal , bucketSvc $scope.detachCopies = function(copies) { bucketSvc.bucketNeedsRefresh = true; var ids = copies.map(function(rec) { return rec.id; }); - + return egCore.net.request( 'open-ils.actor', 'open-ils.actor.container.item.delete.batch', - egCore.auth.token(), 'copy', + egCore.auth.token(), 'copy', bucketSvc.currentBucket.id(), ids - ).then( null, // complete - null, // error - function(resp) { + null, // error + function(resp) { // Remove the items as the API responds so the UI can show // the count of items decreasing. bucketSvc.currentBucket.items( -- 2.11.0