From: erickson Date: Fri, 23 Jan 2009 15:57:12 +0000 (+0000) Subject: better support for org tree widgets X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=197853314419ad37a76eae0315d58e57a6940b03;p=Evergreen.git better support for org tree widgets git-svn-id: svn://svn.open-ils.org/ILS/trunk@11934 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/js/dojo/openils/widget/AutoWidget.js b/Open-ILS/web/js/dojo/openils/widget/AutoWidget.js index 343e957473..9b05657301 100644 --- a/Open-ILS/web/js/dojo/openils/widget/AutoWidget.js +++ b/Open-ILS/web/js/dojo/openils/widget/AutoWidget.js @@ -110,7 +110,9 @@ if(!dojo._hasResource['openils.widget.AutoWidget']) { 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 @@ if(!dojo._hasResource['openils.widget.AutoWidget']) { } else { this.widget.tree = fieldmapper.aou.globalOrgTree; + this.widget.startup(); } } });