[open-ils-commits] r11934 - trunk/Open-ILS/web/js/dojo/openils/widget
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Jan 23 10:57:13 EST 2009
Author: erickson
Date: 2009-01-23 10:57:12 -0500 (Fri, 23 Jan 2009)
New Revision: 11934
Modified:
trunk/Open-ILS/web/js/dojo/openils/widget/AutoWidget.js
Log:
better support for org tree widgets
Modified: trunk/Open-ILS/web/js/dojo/openils/widget/AutoWidget.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/widget/AutoWidget.js 2009-01-23 15:56:34 UTC (rev 11933)
+++ trunk/Open-ILS/web/js/dojo/openils/widget/AutoWidget.js 2009-01-23 15:57:12 UTC (rev 11934)
@@ -110,7 +110,9 @@
dojo.require('openils.widget.FilteringTreeSelect');
this.widget = new openils.widget.FilteringTreeSelect(this.dijitArgs, this.parentNode);
this.widget.searchAttr = 'shortname';
-
+ this.widget.labelAttr = 'shortname';
+ this.widget.parentField = 'parent_ou';
+ //
// if we have a limit perm, find the relevent orgs (async)
if(this.orgLimitPerms && this.orgLimitPerms.length > 0) {
this.async = true;
@@ -126,6 +128,7 @@
} else {
this.widget.tree = fieldmapper.aou.globalOrgTree;
+ this.widget.startup();
}
}
});
More information about the open-ils-commits
mailing list