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

[home2] Fix issue with empty directories

Johan Ahlen 10 лет назад
Родитель
Сommit
c082995
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;
     var self = this;
     if (self.definition.type === 'directory') {
     if (self.definition.type === 'directory') {
       self.makeActive();
       self.makeActive();
+      if (! self.loaded()) {
+        self.load();
+      }
     } else {
     } else {
       window.location.href = self.definition.absoluteUrl;
       window.location.href = self.definition.absoluteUrl;
     }
     }