Skip to content
  • Marina Glancy's avatar
    MDL-31901: Allow FileManager to re-use FilePicker JS code for view modes: · e709ddd2
    Marina Glancy authored
    - when loading core_filepicker we extend the Node element with functions necessary to display files list in different view modes;
    - repository/filepicker.js is changed to use those functions;
    - FileManager now has three different view modes (icon view, tree view and table view), JS code is re-used from FilePicker;
    - files in FileManager no longer have context menu, they have one popup Widget with different actions instead;
    - Added more templates for JS code to FileManager, use similar CSS class names as FilePicker;
    - lib/filelib.php : fixed double slashes in path, return more data about files;
    - lib/form/filemanager.php : pass information to FileManager about available licenses and default author;
    - repository/draftfiles_ajax.php : return information about directory tree for file moving UI in FileManager, return formatted information;
    - repository/lib.php : function repository::prepare_listing() now can work also with draftarea files listing;
    e709ddd2