[open-ils-commits] r9715 - trunk/Open-ILS/web/js/dojo/openils
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue May 27 22:56:36 EDT 2008
Author: erickson
Date: 2008-05-27 22:56:35 -0400 (Tue, 27 May 2008)
New Revision: 9715
Modified:
trunk/Open-ILS/web/js/dojo/openils/User.js
Log:
retrieving high perm org IDs instead of objects now and taking advantage of existing org tree
Modified: trunk/Open-ILS/web/js/dojo/openils/User.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/User.js 2008-05-28 02:55:59 UTC (rev 9714)
+++ trunk/Open-ILS/web/js/dojo/openils/User.js 2008-05-28 02:56:35 UTC (rev 9715)
@@ -231,14 +231,20 @@
function buildTreePicker(r) {
var orgList = r.recv().content();
- var store = new dojo.data.ItemFileReadStore({data:aou.toStoreData(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)});
selector.store = store;
selector.startup();
selector.setValue(_u.user.ws_ou());
}
fieldmapper.standardRequest(
- ['open-ils.actor', 'open-ils.actor.user.work_perm.org_unit_list'],
+ ['open-ils.actor', 'open-ils.actor.user.work_perm.highest_org_set'],
{ params: [this.authtoken, perm],
oncomplete: buildTreePicker,
async: true
More information about the open-ils-commits
mailing list