Răsfoiți Sursa

修复默认首页点击空文件图片没有优先打开文件的问题

unknown 5 ani în urmă
părinte
comite
be1e83e521
1 a modificat fișierele cu 3 adăugiri și 2 ștergeri
  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;