Просмотр исходного кода

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

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

See merge request o2oa/o2oa!1809
蔡祥熠 5 лет назад
Родитель
Сommit
8bfa6250ec
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      o2web/source/x_component_Homepage/FileContent.js

+ 3 - 2
o2web/source/x_component_Homepage/FileContent.js

@@ -127,8 +127,9 @@ MWF.xApplication.Homepage.FileContent.File = new Class({
         //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.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;
         this.content.noItemNode.setStyle("margin-top", ""+m+"px");
         this.content.isLoading = false;