浏览代码

[filechooser] adding remote_storage_home in filechooser

ayush.goyal 4 年之前
父节点
当前提交
e250e80ad6
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      desktop/core/src/desktop/js/jquery/plugins/jquery.filechooser.js

+ 2 - 0
desktop/core/src/desktop/js/jquery/plugins/jquery.filechooser.js

@@ -836,6 +836,8 @@ Plugin.prototype.init = function () {
     }
     if (initialPath != '') {
       self.navigateTo(self.options.initialPath);
+    } else if (window.USER_HOME_DIR != '/') {
+      self.navigateTo(window.USER_HOME_DIR);
     } else if (
       hueLocalStorage(STORAGE_PREFIX + self.options.user + self.options.fsSelected) != null
     ) {