From 254b695d2d4181225105af0fe074ba47e95d5f87 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 22 Mar 2012 14:09:44 -0400 Subject: [PATCH] acq fund permacrud porting Signed-off-by: Bill Erickson --- Open-ILS/src/templates/acq/fund/list.tt2 | 3 +-- Open-ILS/web/js/ui/default/acq/financial/list_funds.js | 15 +++++---------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/Open-ILS/src/templates/acq/fund/list.tt2 b/Open-ILS/src/templates/acq/fund/list.tt2 index 83f2320b8d..c70e1a1dc7 100644 --- a/Open-ILS/src/templates/acq/fund/list.tt2 +++ b/Open-ILS/src/templates/acq/fund/list.tt2 @@ -139,13 +139,12 @@ -
+
diff --git a/Open-ILS/web/js/ui/default/acq/financial/list_funds.js b/Open-ILS/web/js/ui/default/acq/financial/list_funds.js index f9759fc35b..6da078a56e 100644 --- a/Open-ILS/web/js/ui/default/acq/financial/list_funds.js +++ b/Open-ILS/web/js/ui/default/acq/financial/list_funds.js @@ -31,13 +31,7 @@ var fundFleshFields = [ 'allocation_total' ]; -function getBalanceInfo(rowIndex, item) { - if(!item) return ''; - return this.grid.store.getValue(item, this.field) || 0; -} - function initPage() { - contextOrg = openils.User.user.ws_ou(); var connect = function() { @@ -87,11 +81,12 @@ function loadFundGrid(year) { var pcrud = new openils.PermaCrud(); pcrud.search('acqf', { year : year, - org : fieldmapper.aou.descendantNodeList(contextOrg, true) - }, - { flesh : 1, + org : fieldmapper.aou.descendantNodeList(contextOrg, true) }, + { streaming : true, + limit: lfGrid.displayLimit, + offset: lfGrid.displayOffset, + flesh : 1, flesh_fields : {acqf : fundFleshFields}, - streaming : true, onresponse : function(r, obj) { if(fund = openils.Util.readResponse(r)) { fundFleshFields.forEach(function(ff) { -- 2.11.0