[open-ils-commits] r17701 - trunk/Open-ILS/web/js/dojo/openils/widget (erickson)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Sep 15 13:24:58 EDT 2010


Author: erickson
Date: 2010-09-15 13:24:54 -0400 (Wed, 15 Sep 2010)
New Revision: 17701

Modified:
   trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js
   trunk/Open-ILS/web/js/dojo/openils/widget/AutoWidget.js
Log:
after auto-loading the IDL class, re-set the local fmIDL handle

Modified: trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js	2010-09-15 17:11:18 UTC (rev 17700)
+++ trunk/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js	2010-09-15 17:24:54 UTC (rev 17701)
@@ -62,8 +62,10 @@
                 this.fmClass = this.fmObject.classname;
             this.fmIDL = fieldmapper.IDL.fmclasses[this.fmClass];
 
-            if(this.fmClass && !this.fmIDL)
+            if(this.fmClass && !this.fmIDL) {
                 fieldmapper.IDL.load([this.fmClass]);
+                this.fmIDL = fieldmapper.IDL.fmclasses[this.fmClass];
+            }
 
             this.suppressLinkedFields = args.suppressLinkedFields || [];
 

Modified: trunk/Open-ILS/web/js/dojo/openils/widget/AutoWidget.js
===================================================================
--- trunk/Open-ILS/web/js/dojo/openils/widget/AutoWidget.js	2010-09-15 17:11:18 UTC (rev 17700)
+++ trunk/Open-ILS/web/js/dojo/openils/widget/AutoWidget.js	2010-09-15 17:24:54 UTC (rev 17701)
@@ -20,8 +20,10 @@
             if(this.fmObject)
                 this.fmClass = this.fmObject.classname;
             this.fmIDL = fieldmapper.IDL.fmclasses[this.fmClass];
-            if(this.fmClass && !this.fmIDL) 
+            if(!this.fmIDL) {
                 fieldmapper.IDL.load([this.fmClass]);
+                this.fmIDL = fieldmapper.IDL.fmclasses[this.fmClass];
+            }
             this.buildSortedFieldList();
         },
 



More information about the open-ils-commits mailing list