提交 9cb8c8c3 编写于 作者: U unknown

自定义提交

上级 c0222091
......@@ -1721,13 +1721,17 @@ MWF.xApplication.process.Xform.Form = MWF.APPForm = new Class({
return false;
}
if (!MWF["APPSubmitform"]) {
MWF.xDesktop.requireApp("process.Xform", "Subform", null, false);
debugger;
if( !this.submitFormModule ){
if (!MWF["APPSubmitform"]) {
MWF.xDesktop.requireApp("process.Xform", "Subform", null, false);
}
var submitFormContainer = new Element("div").inject( layout.mobile ? $(document.body) : this.app.content );
this.submitFormModule = new MWF["APPSubmitform"]( submitFormContainer , this.json, this);
this.submitFormModule.load();
}else{
this.submitFormModule.show();
}
var submitFormContainer = new Element("div").inject( layout.mobile ? $(document.body) : this.app.content );
var module = new MWF["APPSubmitform"]( submitFormContainer , this.json, this);
module.load();
},
processWork_pc: function(){
var _self = this;
......
......@@ -196,6 +196,9 @@ MWF.xApplication.process.Xform.SubmitForm = MWF.APPSubmitform = new Class({
this.loadSubform();
}.bind(this));
},
show : function(){
this.fireSubFormEvent("load");
},
fireSubFormEvent : function( name ){
var events = this.subformData.json.events;
if( events && events[name] && events[name]["code"] ){
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册