From 3df7f8ca6f38f6cfe823e35b828a9309f66c603e Mon Sep 17 00:00:00 2001 From: erickson Date: Thu, 11 Dec 2008 15:33:10 +0000 Subject: [PATCH] using new single-object store handling git-svn-id: svn://svn.open-ils.org/ILS/trunk@11506 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/ui/default/acq/picklist/view_list.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Open-ILS/web/js/ui/default/acq/picklist/view_list.js b/Open-ILS/web/js/ui/default/acq/picklist/view_list.js index b511e1f1f8..77cbeadcbf 100644 --- a/Open-ILS/web/js/ui/default/acq/picklist/view_list.js +++ b/Open-ILS/web/js/ui/default/acq/picklist/view_list.js @@ -14,7 +14,8 @@ function loadGrid() { if(listAll) method = method.replace(/user/, 'user.all'); - var store = new dojo.data.ItemFileWriteStore({data:acqpl.toStoreData([])}); + //var store = new dojo.data.ItemFileWriteStore({data:acqpl.toStoreData([])}); + var store = new dojo.data.ItemFileWriteStore({data:acqpl.initStoreData()}); plListGrid.setStore(store); plListGrid.render(); @@ -27,7 +28,7 @@ function loadGrid() { onresponse : function(r) { if(pl = openils.Util.readResponse(r)) - store.newItem(acqpl.toStoreData([pl]).items[0]); + store.newItem(acqpl.itemToStoreData(pl)); } } ); -- 2.11.0