LP#1402797 Add "forget" mode for grid limit; Use in hold clearing mode
authorMike Rylander <mrylander@gmail.com>
Mon, 2 Feb 2015 15:15:10 +0000 (10:15 -0500)
committerBill Erickson <berickxx@gmail.com>
Wed, 25 Feb 2015 16:16:07 +0000 (11:16 -0500)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/web/js/ui/default/staff/circ/holds/app.js
Open-ILS/web/js/ui/default/staff/services/grid.js

index 8ce83c4..f0f5be5 100644 (file)
@@ -167,7 +167,7 @@ function($scope , $q , $routeParams , $window , $location , egCore , egHolds , e
 
         // we want to see all processed holds, so (effectively) remove
         // the grid limit.
-        $scope.gridControls.setLimit(1000); 
+        $scope.gridControls.setLimit(1000, true); 
 
         // initiate clear shelf and grab cache key
         egCore.net.request(
index 8b2b441..50c2786 100644 (file)
@@ -223,8 +223,8 @@ angular.module('egGridMod',
                     grid.collect();
                 }
 
-                controls.setLimit = function(limit) {
-                    if (grid.persistKey)
+                controls.setLimit = function(limit,forget) {
+                    if (!forget && grid.persistKey)
                         egCore.hatch.setLocalItem('eg.grid.' + grid.persistKey + '.limit', limit);
                     grid.limit = limit;
                 }