|
@@ -18,7 +18,16 @@ MWF.xApplication.process.Xform.SubSource = MWF.APPSubSource = new Class({
|
|
|
_loadUserInterface: function(){
|
|
_loadUserInterface: function(){
|
|
|
this.loopNodes = [];
|
|
this.loopNodes = [];
|
|
|
this.subSourceItems = [];
|
|
this.subSourceItems = [];
|
|
|
- this.node.hide();
|
|
|
|
|
|
|
+ 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.store("module", this);
|
|
this.node.store("module", this);
|
|
|
this._loadJsonData();
|
|
this._loadJsonData();
|
|
|
},
|
|
},
|
|
@@ -97,20 +106,9 @@ MWF.xApplication.process.Xform.SubSource = MWF.APPSubSource = new Class({
|
|
|
if (this.source.data){
|
|
if (this.source.data){
|
|
|
this._getSourceData(this.source.data);
|
|
this._getSourceData(this.source.data);
|
|
|
this.fireEvent("postLoadData");
|
|
this.fireEvent("postLoadData");
|
|
|
- this.node.show();
|
|
|
|
|
if (typeOf(this.data)=="array"){
|
|
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._loopData();
|
|
|
|
|
+
|
|
|
this.fireEvent("loadData");
|
|
this.fireEvent("loadData");
|
|
|
}else{
|
|
}else{
|
|
|
this.form._loadModules(this.node);
|
|
this.form._loadModules(this.node);
|