From: kondou Date: Mon, 8 Apr 2013 20:57:46 +0000 (+0200) Subject: Remove manual mimetype checking. X-Git-Tag: v6.0.0alpha2~932^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9c53f35d9a85d7fd322c3e897821db00dc29675f;p=nextcloud-server.git Remove manual mimetype checking. --- diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js index fcf48584c5d..a690938f383 100644 --- a/core/js/oc-dialogs.js +++ b/core/js/oc-dialogs.js @@ -328,12 +328,8 @@ var OCdialogs = { fillTreeList: function(request, dialog_id) { var template = ''; var paths = ''; - 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);