提交 5c417fe3 编写于 作者: U unknown

修复表单流转后立刻关闭重定向无效的问题

上级 62d3d7a7
...@@ -1575,7 +1575,15 @@ MWF.xApplication.process.Xform.Form = MWF.APPForm = new Class({ ...@@ -1575,7 +1575,15 @@ MWF.xApplication.process.Xform.Form = MWF.APPForm = new Class({
"buttonList": [ "buttonList": [
{ {
"text": this.app.lp.closePage, "text": this.app.lp.closePage,
"action": function () { dlg.close(); this.app.close(); }.bind(this) "action": function () {
dlg.close();
if (this.json.afterProcessAction=="redirect" && this.json.afterProcessRedirectScript && this.json.afterProcessRedirectScript.code){
var url = this.Macro.exec(this.json.afterProcessRedirectScript.code, this);
(new URI(url)).go();
}else{
this.app.close();
}
}.bind(this)
} }
] ]
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册