lp1735835 Transfer Bucket Contents to Pending
[evergreen-equinox.git] / Open-ILS / web / js / ui / default / staff / cat / bucket / copy / app.js
index 70eb084..f23b8a9 100644 (file)
@@ -560,6 +560,13 @@ function($scope,  $q , $routeParams , $timeout , $window , $uibModal , bucketSvc
         bucketSvc.bucketNeedsRefresh = true;
         return $q.all(promises).then(drawBucket);
     }
+    
+    $scope.moveToPending = function(copies) {
+        angular.forEach(copies, function(copy) {
+            bucketSvc.pendingList.push(copy.id);
+        });
+        $scope.detachCopies(copies);
+    }
 
     $scope.spawnHoldingsEdit = function (copies) {
         var cp_list = []