浏览代码

[home2] Fix issue with empty directories

Johan Ahlen 9 年之前
父节点
当前提交
c08299573e
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      desktop/core/src/desktop/static/desktop/js/fileBrowser/hueFileEntry.js

+ 3 - 0
desktop/core/src/desktop/static/desktop/js/fileBrowser/hueFileEntry.js

@@ -84,6 +84,9 @@
     var self = this;
     if (self.definition.type === 'directory') {
       self.makeActive();
+      if (! self.loaded()) {
+        self.load();
+      }
     } else {
       window.location.href = self.definition.absoluteUrl;
     }