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();