Merge pull request #16127 from owncloud/fix-file-icons-in-shared-file-view

Enable file icons & previews in "Shared ..." categories
This commit is contained in:
Jan-Christoph Borchardt 2015-05-12 15:17:43 +02:00
commit 46e4d8818c
3 changed files with 4 additions and 1 deletions

View File

@ -950,7 +950,8 @@
if (fileData.isPreviewAvailable) {
var iconDiv = filenameTd.find('.thumbnail');
// lazy load / newly inserted td ?
if (options.animate) {
// the typeof check ensures that the default value of animate is true
if (typeof(options.animate) === 'undefined' || !!options.animate) {
this.lazyLoadPreview({
path: path + '/' + fileData.name,
mime: mime,

View File

@ -68,6 +68,7 @@ class Local {
if (\OC::$server->getPreviewManager()->isMimeSupported($share['mimetype'])) {
$share['isPreviewAvailable'] = true;
}
$share['icon'] = substr(\OC_Helper::mimetypeIcon($share['mimetype']), 0, -3) . 'svg';
}
}
return new \OC_OCS_Result($shares);

View File

@ -176,6 +176,7 @@
.map(function(share) {
var file = {
id: share.file_source,
icon: share.icon,
mimetype: share.mimetype
};
if (share.item_type === 'folder') {