Browse Source

[filechooser] adding remote_storage_home in filechooser

ayush.goyal 4 years ago
parent
commit
e250e80ad6

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

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