Browse Source

HUE-887 [oozie] Fielbrowser doesn't understand path

'/?default_to_home' is provided as a get parameter to the filebrowser API.
The plugin doesn't understand GET parameters as a path.
The path returned by the filebrowser should be used instead.
abec 13 years ago
parent
commit
8246208839
1 changed files with 1 additions and 0 deletions
  1. 1 0
      desktop/core/static/js/Source/jHue/jquery.filechooser.js

+ 1 - 0
desktop/core/static/js/Source/jHue/jquery.filechooser.js

@@ -63,6 +63,7 @@
         var _parent = this;
         $(_parent.element).empty();
         $.getJSON("/filebrowser/chooser" + path, function (data) {
+            path = data.current_dir_path; // use real path.
             var _flist = $("<ul>").addClass("unstyled");
             if (data.title != null && data.title == "Error") {
                 var _errorMsg = $("<div>").addClass("alert").addClass("alert-error").text(data.message);