提交 d2b0ecf0 编写于 作者: NoSubject's avatar NoSubject

Merge branch 'fix/fix-att-preview' into 'wrdp'

屏蔽移动端附件预览功能

See merge request o2oa/o2oa!5376

(cherry picked from commit 935b426f)

c534659a 屏蔽移动端附件预览功能
048bc2ff 屏蔽移动端附件预览功能
上级 7de5a684
......@@ -141,7 +141,9 @@ MWF.xApplication.process.Xform.AttachmentController = new Class({
}
},
checkPreviewAttAction: function () {
if (!this.options.isPreviewAtt){
if(layout.mobile){
this.setActionDisabled(this.previewAttAction);
} else if (!this.options.isPreviewAtt){
this.setActionDisabled(this.previewAttAction);
//this.setActionDisabled(this.min_downloadAction);
}else{
......@@ -544,9 +546,11 @@ MWF.xApplication.process.Xform.AttachmentController = new Class({
this.deleteAction = this.createAction(this.editActionsGroupNode, "delete", o2.LP.widget["delete"], function (e, node) {
this.deleteAttachment(e, node);
}.bind(this));
this.previewAttAction = this.createAction(this.editActionsGroupNode, "previewAtt", o2.LP.widget["previewAtt"], function (e, node) {
this.previewAttachment(e, node);
}.bind(this));
if(!layout.mobile){
this.previewAttAction = this.createAction(this.editActionsGroupNode, "previewAtt", o2.LP.widget["previewAtt"], function (e, node) {
this.previewAttachment(e, node);
}.bind(this));
}
if (!this.options.isReplaceHidden) {
this.replaceAction = this.createAction(this.editActionsGroupNode, "replace", o2.LP.widget.replace, function (e, node) {
this.replaceAttachment(e, node);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册