[open-ils-commits] r11818 - trunk/Open-ILS/web/js/dojo/openils

svn at svn.open-ils.org svn at svn.open-ils.org
Tue Jan 13 15:07:50 EST 2009


Author: erickson
Date: 2009-01-13 15:07:46 -0500 (Tue, 13 Jan 2009)
New Revision: 11818

Modified:
   trunk/Open-ILS/web/js/dojo/openils/User.js
Log:
getPermOrgList will collect the descendants for us now

Modified: trunk/Open-ILS/web/js/dojo/openils/User.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/User.js	2009-01-13 19:56:11 UTC (rev 11817)
+++ trunk/Open-ILS/web/js/dojo/openils/User.js	2009-01-13 20:07:46 UTC (rev 11818)
@@ -278,12 +278,7 @@
             }
 
             function buildTreePicker(orgList) {
-                var orgNodeList = [];
-                for(var i = 0; i < orgList.length; i++) 
-                    orgNodeList = orgNodeList.concat(
-                        fieldmapper.aou.descendantNodeList(orgList[i]));
-
-                var store = new dojo.data.ItemFileReadStore({data:aou.toStoreData(orgNodeList)});
+                var store = new dojo.data.ItemFileReadStore({data:aou.toStoreData(orgList)});
                 hookupStore(store);
                 _u.permOrgStoreCache[perm] = store;
             }



More information about the open-ils-commits mailing list