From 7d943b2ddc1d208491430747a4b64cbce923d726 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Thu, 9 Jul 2015 13:51:03 +0200 Subject: Make the filelist get the mimetypeicon from the mimetype --- apps/files/js/filelist.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'apps') 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 = $(''); -- cgit v1.2.3