[open-ils-commits] r11506 - trunk/Open-ILS/web/js/ui/default/acq/picklist

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Dec 11 10:33:12 EST 2008


Author: erickson
Date: 2008-12-11 10:33:10 -0500 (Thu, 11 Dec 2008)
New Revision: 11506

Modified:
   trunk/Open-ILS/web/js/ui/default/acq/picklist/view_list.js
Log:
using new single-object store handling

Modified: trunk/Open-ILS/web/js/ui/default/acq/picklist/view_list.js
===================================================================
--- trunk/Open-ILS/web/js/ui/default/acq/picklist/view_list.js	2008-12-11 15:32:58 UTC (rev 11505)
+++ trunk/Open-ILS/web/js/ui/default/acq/picklist/view_list.js	2008-12-11 15:33:10 UTC (rev 11506)
@@ -14,7 +14,8 @@
     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 @@
 
             onresponse : function(r) {
                 if(pl = openils.Util.readResponse(r)) 
-                    store.newItem(acqpl.toStoreData([pl]).items[0]);
+                    store.newItem(acqpl.itemToStoreData(pl));
             }
         }
     );



More information about the open-ils-commits mailing list