Make the filelist get the mimetypeicon from the mimetype
This commit is contained in:
parent
a727cbc7a9
commit
7d943b2ddc
|
@ -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>');
|
||||
|
||||
|
|
Loading…
Reference in New Issue