From 144f558f4eef1d376704854eb1b45e6344cafa22 Mon Sep 17 00:00:00 2001 From: erickson Date: Wed, 15 Sep 2010 17:24:54 +0000 Subject: [PATCH] after auto-loading the IDL class, re-set the local fmIDL handle git-svn-id: svn://svn.open-ils.org/ILS/trunk@17701 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js | 4 +++- Open-ILS/web/js/dojo/openils/widget/AutoWidget.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js b/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js index 801c824df..1fc77a07e 100644 --- a/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js +++ b/Open-ILS/web/js/dojo/openils/widget/AutoFieldWidget.js @@ -62,8 +62,10 @@ if(!dojo._hasResource['openils.widget.AutoFieldWidget']) { 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 || []; diff --git a/Open-ILS/web/js/dojo/openils/widget/AutoWidget.js b/Open-ILS/web/js/dojo/openils/widget/AutoWidget.js index cb042062d..6c065b12e 100644 --- a/Open-ILS/web/js/dojo/openils/widget/AutoWidget.js +++ b/Open-ILS/web/js/dojo/openils/widget/AutoWidget.js @@ -20,8 +20,10 @@ if(!dojo._hasResource['openils.widget.AutoWidget']) { 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(); }, -- 2.11.0