提交 ecc4465f 编写于 作者: 蔡祥熠

Merge branch 'fix/view_as_field' into 'develop'

Merge of fix/view_as_field 修复视图选中按钮设置一些样式无效的问题 to develop

See merge request o2oa/o2oa!514
......@@ -1171,7 +1171,7 @@ MWF.xApplication.cms.Xform.Form = MWF.CMSForm = new Class(
notifyCreatePerson: true
};
}
if( sendOptions ) {
if( sendOptions && o2.Actions.load("x_cms_assemble_control").DocumentAction.publishNotify ) {
o2.Actions.load("x_cms_assemble_control").DocumentAction.publishNotify(this.businessData.document.id, sendOptions, function () {
if (callback) callback();
}, function () {
......
......@@ -29,6 +29,9 @@ MWF.xApplication.process.Xform.ViewSelector = MWF.APPViewSelector = new Class({
"styles": this.form.css.buttonStyles,
"MWFType": this.json.type
});
if(this.json.recoveryStyles){
this.node.setStyles(this.json.recoveryStyles);
}
this.node.addEvent("click", function(){
this.selectedData = null;
this.selectView(function(data){
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册