diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2015-07-09 13:51:03 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2015-07-09 13:56:43 +0200 |
commit | 7d943b2ddc1d208491430747a4b64cbce923d726 (patch) | |
tree | 191c340b9dbb14adead1fb15ba565b893c77e01a /apps | |
parent | a727cbc7a92ce9e31bc3c3b2127ce4a66749d4b1 (diff) | |
download | nextcloud-server-7d943b2ddc1d208491430747a4b64cbce923d726.tar.gz nextcloud-server-7d943b2ddc1d208491430747a4b64cbce923d726.zip |
Make the filelist get the mimetypeicon from the mimetype
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/js/filelist.js | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index a08c23d4fa0..79ee355125d 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -670,7 +670,7 @@ */ _createRow: function(fileData, options) { var td, simpleSize, basename, extension, sizeColor, - icon = OC.Util.replaceSVGIcon(fileData.icon), + icon = OC.MimeType.getIconUrl(fileData.mimetype), name = fileData.name, type = fileData.type || 'file', mtime = parseInt(fileData.mtime, 10), @@ -710,14 +710,6 @@ path = this.getCurrentDirectory(); } - if (type === 'dir') { - // use default folder icon - icon = icon || OC.imagePath('core', 'filetypes/folder'); - } - else { - icon = icon || OC.imagePath('core', 'filetypes/file'); - } - // filename td td = $('<td class="filename"></td>'); |