diff options
author | kondou <kondou@ts.unde.re> | 2013-04-08 22:57:46 +0200 |
---|---|---|
committer | kondou <kondou@ts.unde.re> | 2013-04-08 23:00:02 +0200 |
commit | 9c53f35d9a85d7fd322c3e897821db00dc29675f (patch) | |
tree | d635819b263ecdce0e46b6e8edcbff589f6b7d18 /core/js | |
parent | 275badaf766c6c1a1b8d8749361f5156a2f0e742 (diff) | |
download | nextcloud-server-9c53f35d9a85d7fd322c3e897821db00dc29675f.tar.gz nextcloud-server-9c53f35d9a85d7fd322c3e897821db00dc29675f.zip |
Remove manual mimetype checking.
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/oc-dialogs.js | 6 |
1 files changed, 1 insertions, 5 deletions
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 = '<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); |