소스 검색

HUE-5661 [fb] Filechooser seems to truncate the file list

Enrico Berti 8 년 전
부모
커밋
eca7da968d
1개의 변경된 파일5개의 추가작업 그리고 1개의 파일을 삭제
  1. 5 1
      desktop/core/src/desktop/static/desktop/js/jquery.filechooser.js

+ 5 - 1
desktop/core/src/desktop/static/desktop/js/jquery.filechooser.js

@@ -174,7 +174,11 @@
   Plugin.prototype.navigateTo = function (path) {
     var _parent = this;
     $(_parent.element).find('.filechooser-tree').html("<i style=\"font-size: 24px; color: #DDD\" class=\"fa fa-spinner fa-spin\"></i>");
-    $.getJSON("/filebrowser/view=" + path, function (data) {
+    var pageSize = '?pagesize=1000';
+    if (path.indexOf('?') > -1) {
+      pageSize = pageSize.replace(/\?/, '&');
+    }
+    $.getJSON("/filebrowser/view=" + path + pageSize, function (data) {
       $(_parent.element).find('.filechooser-tree').empty();
 
       path = data.current_dir_path; // use real path.