提交 20938e2f 编写于 作者: U unknown

脚本API createDocument 添加参数 afterLoad

上级 55e8a492
......@@ -491,13 +491,13 @@ MWF.xApplication.cms.Index.Newer = new Class({
"readonly" :false,
"documentId": id,
"appId": appId,
"onPostPublish" : function(){
this.fireEvent( "postPublish" );
"onPostPublish" : function( args ){
this.fireEvent( "postPublish", args );
}.bind(this),
"onAfterPublish" : function () {
"onAfterPublish" : function ( args ) {
debugger;
if(_self.view && _self.view.reload )_self.view.reload();
_self.fireEvent( "afterPublish" );
_self.fireEvent( "afterPublish", args );
}
};
if( typeOf(this.options.autoSave) == "boolean" )options.autoSave = this.options.autoSave;
......
......@@ -465,8 +465,8 @@ MWF.xApplication.cms.Xform.Form = MWF.CMSForm = new Class({
}
this.documentAction.publishDocumentComplex(documentData, function (json) {
this.businessData.data.isNew = false;
this.fireEvent("afterPublish");
if (this.app) if (this.app.fireEvent) this.app.fireEvent("afterPublish");
this.fireEvent("afterPublish", [this, json.data]);
if (this.app) if (this.app.fireEvent) this.app.fireEvent("afterPublish",[this, json.data]);
if (callback) callback();
if (this.app.mobile) {
this.app.content.unmask();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册