]> source.dussan.org Git - nextcloud-server.git/commitdiff
Remove manual mimetype checking.
authorkondou <kondou@ts.unde.re>
Mon, 8 Apr 2013 20:57:46 +0000 (22:57 +0200)
committerkondou <kondou@ts.unde.re>
Mon, 8 Apr 2013 21:00:02 +0000 (23:00 +0200)
core/js/oc-dialogs.js

index fcf48584c5d1bceae493842bd355057743c21d6f..a690938f38323492593151cddaf49719307136f1 100644 (file)
@@ -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);