Make the filelist get the mimetypeicon from the mimetype

This commit is contained in:
Roeland Jago Douma 2015-07-09 13:51:03 +02:00
parent a727cbc7a9
commit 7d943b2ddc
1 changed files with 1 additions and 9 deletions

View File

@ -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>');