ff web / cleanup
authorBill Erickson <berick@esilibrary.com>
Mon, 4 Nov 2013 18:49:49 +0000 (13:49 -0500)
committerBill Erickson <berick@esilibrary.com>
Mon, 4 Nov 2013 18:49:49 +0000 (13:49 -0500)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/web/js/ui/default/staff/fulfillment/app.js

index d0f1041..db860de 100644 (file)
@@ -783,36 +783,6 @@ function ($scope,  $q,  $route,  egNet,  egAuth,  egPCRUD,  egOrg,  orgSelector)
             display.next_action = 'ill-home-capture';
     };
 
-    // call the parent scope's action handler for each selected item.
-    // when all are done, reload the route (when not printing).
-    /*
-    angular.forEach(['checkin', 'cancel', 'retarget', 'print'],
-        function(action) {
-            $scope[action] = function() {
-                var total = Object.keys($scope.itemList.selected).length;
-                angular.forEach(
-                    $scope.itemList.selected,
-                    function(idx) {
-                        var item = $scope.itemList.items.filter(
-                            function(i) {return i.index == idx})[0];
-                        $scope.actions[action](item)
-                        .then(
-                            // when all items are done processing, reload the route
-                            function(resp) {
-                                if (--total == 0 && action != 'print') 
-                                    $route.reload()
-                            }, 
-                            function(resp) {
-                                console.error("error in " + action + ": " + resp);
-                            }
-                        );
-                    }
-                );
-            };
-        }
-    );
-    */
-
     $scope.drawTable = function() {
         $scope.itemList.items = [];
         var fullPath = orgSelector.relatedOrgs();