Set refresh function so Actions trigger refresh
authorMike Rylander <mrylander@gmail.com>
Fri, 27 Feb 2015 18:25:11 +0000 (13:25 -0500)
committerMike Rylander <mrylander@gmail.com>
Wed, 8 Jul 2015 18:10:12 +0000 (14:10 -0400)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/web/js/ui/default/staff/cat/catalog/app.js

index 4cd81d7..77a8f08 100644 (file)
@@ -166,6 +166,7 @@ function($scope , $routeParams , $location , $q , egCore , egHolds,
     var provider = egGridDataProvider.instance({});
     $scope.hold_grid_data_provider = provider;
     $scope.grid_actions = egHoldGridActions;
+    $scope.grid_actions.refresh = function () { provider.refresh() };
     $scope.hold_grid_controls = {};
 
     var hold_ids = []; // current list of holds