[open-ils-commits] r12951 - trunk/Open-ILS/web/js/dojo/openils/widget (erickson)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Apr 21 16:23:05 EDT 2009
Author: erickson
Date: 2009-04-21 16:22:59 -0400 (Tue, 21 Apr 2009)
New Revision: 12951
Modified:
trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js
Log:
import stuff before using it
Modified: trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js 2009-04-21 20:22:28 UTC (rev 12950)
+++ trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js 2009-04-21 20:22:59 UTC (rev 12951)
@@ -256,6 +256,7 @@
_buildLinkSelector : function() {
var selectorInfo = this._getLinkSelector();
if(!selectorInfo) return false;
+
var linkClass = selectorInfo.linkClass;
var vfield = selectorInfo.vfield;
@@ -266,14 +267,14 @@
if(linkClass == 'aou')
return this._buildOrgSelector();
+ dojo.require('openils.PermaCrud');
+ dojo.require('dojo.data.ItemFileReadStore');
+ dojo.require('dijit.form.FilteringSelect');
+
this.widget = new dijit.form.FilteringSelect(this.dijitArgs, this.parentNode);
this.widget.searchAttr = this.widget.labelAttr = vfield.selector || vfield.name;
this.widget.valueAttr = vfield.name;
- dojo.require('openils.PermaCrud');
- dojo.require('dojo.data.ItemFileReadStore');
- dojo.require('dijit.form.FilteringSelect');
-
var self = this;
var oncomplete = function(list) {
if(list) {
More information about the open-ils-commits
mailing list