From 23483d848a9869284b6584e37136fb0c5e7ca757 Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Wed, 14 Jun 2017 11:51:53 -0400 Subject: [PATCH] LP#1697954: Enable clientsort for user holds lists These will generally be small, so we'll fetch all the data to support client- side sorting. Signed-off-by: Mike Rylander Signed-off-by: Andrea Neiman Signed-off-by: Bill Erickson --- Open-ILS/src/templates/staff/circ/patron/t_holds_list.tt2 | 6 +++--- Open-ILS/web/js/ui/default/staff/circ/patron/holds.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Open-ILS/src/templates/staff/circ/patron/t_holds_list.tt2 b/Open-ILS/src/templates/staff/circ/patron/t_holds_list.tt2 index 665ca04a2e..5fa3b96105 100644 --- a/Open-ILS/src/templates/staff/circ/patron/t_holds_list.tt2 +++ b/Open-ILS/src/templates/staff/circ/patron/t_holds_list.tt2 @@ -1,6 +1,6 @@ @@ -53,8 +53,8 @@ - - + + diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/holds.js b/Open-ILS/web/js/ui/default/staff/circ/patron/holds.js index ddbf1d8692..4013bc7221 100644 --- a/Open-ILS/web/js/ui/default/staff/circ/patron/holds.js +++ b/Open-ILS/web/js/ui/default/staff/circ/patron/holds.js @@ -50,8 +50,8 @@ function($scope, $q, $routeParams, egCore, egUser, patronSvc, $scope.gridDataProvider = provider; function fetchHolds(offset, count) { - var ids = patronSvc.hold_ids.slice(offset, offset + count); - return egHolds.fetch_holds(ids).then(null, null, + //var ids = patronSvc.hold_ids.slice(offset, offset + count); // we're going to just fetch all the holds up front + return egHolds.fetch_holds(patronSvc.hold_ids).then(null, null, function(hold_data) { patronSvc.holds.push(hold_data); return hold_data; -- 2.43.2