diff --git a/o2web/source/x_component_process_Xform/SubSource.js b/o2web/source/x_component_process_Xform/SubSource.js index 44d823d2739e0eaef573db507b8999a798653285..d4dcce28e4ee56caab8c7cd8b34d181602b12ebb 100644 --- a/o2web/source/x_component_process_Xform/SubSource.js +++ b/o2web/source/x_component_process_Xform/SubSource.js @@ -18,16 +18,7 @@ MWF.xApplication.process.Xform.SubSource = MWF.APPSubSource = new Class({ _loadUserInterface: function(){ this.loopNodes = []; this.subSourceItems = []; - var node = new Element("div").inject(this.node, "before"); - this.node.inject(node); - this.loopNode = this.node.dispose(); - this.node = node; - var id = node.get("id"); - node.set("id", ""); - this.node.set({ - "id": id, - "mwftype": node.get("mwftype") - }); + this.node.hide(); this.node.store("module", this); this._loadJsonData(); }, @@ -106,11 +97,23 @@ MWF.xApplication.process.Xform.SubSource = MWF.APPSubSource = new Class({ if (this.source.data){ this._getSourceData(this.source.data); this.fireEvent("postLoadData"); + this.node.show(); if (typeOf(this.data)=="array"){ + var node = new Element("div").inject(this.node, "before"); + this.node.inject(node); + this.loopNode = this.node.dispose(); + this.node = node; + var id = node.get("id"); + node.set("id", ""); + this.node.set({ + "id": id, + "mwftype": node.get("mwftype") + }); + this._loopData(); this.fireEvent("loadData"); }else{ - this._loadModules(this.node); + this.form._loadModules(this.node); } //this.tmpDiv = new Element("div");