提交 8bfa6250 编写于 作者: 蔡祥熠

Merge branch 'fix/Homepage.attachment_execption' into 'wrdp'

Merge of fix/Homepage.attachment_execption 修复默认首页点击空文件图片没有优先打开文件的问题 to wrdp

See merge request o2oa/o2oa!1809
...@@ -127,8 +127,9 @@ MWF.xApplication.Homepage.FileContent.File = new Class({ ...@@ -127,8 +127,9 @@ MWF.xApplication.Homepage.FileContent.File = new Class({
//this.itemContentNode.addClass("o2_homepage_task_area_content_empty").addClass("icon_notask"); //this.itemContentNode.addClass("o2_homepage_task_area_content_empty").addClass("icon_notask");
this.content.noItemNode = new Element("div.o2_homepage_file_area_content_empty_node", {"text": this.app.lp.noFile}).inject(this.container); this.content.noItemNode = new Element("div.o2_homepage_file_area_content_empty_node", {"text": this.app.lp.noFile}).inject(this.container);
this.content.noItemNode.addEvent("click", function(e){ this.content.noItemNode.addEvent("click", function(e){
layout.openApplication(e, "File"); // layout.openApplication(e, "File");
}); this.content.openFile(e);
}.bind(this));
var m = (this.content.contentHeight- this.content.noItemNode.getSize().y)/2; var m = (this.content.contentHeight- this.content.noItemNode.getSize().y)/2;
this.content.noItemNode.setStyle("margin-top", ""+m+"px"); this.content.noItemNode.setStyle("margin-top", ""+m+"px");
this.content.isLoading = false; this.content.isLoading = false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册