Skip to content
Snippets Groups Projects
Commit 9c53f35d authored by Christopher Schäpers's avatar Christopher Schäpers
Browse files

Remove manual mimetype checking.

parent 275badaf
No related branches found
No related tags found
No related merge requests found
......@@ -328,12 +328,8 @@ var OCdialogs = {
fillTreeList: function(request, dialog_id) {
var template = '<option value="*COUNT*">*NAME*</option>';
var paths = '<option value="0">' + escapeHTML($(dialog_id).data('path')) + '</option>';
var count = 1;
$.each(request.data, function(index, file) {
if (file.mimetype === "httpd/unix-directory") {
paths += template.replace('*COUNT*', count).replace('*NAME*', escapeHTML(file.name));
count++;
}
paths += template.replace('*COUNT*', index).replace('*NAME*', escapeHTML(file.name));
});
$(dialog_id + ' #dirtree').html(paths);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment