Fix missing icon in list mode for files with thumbnail
This commit is contained in:
parent
4116d08dd1
commit
4197b7b968
@ -1165,7 +1165,9 @@ define([
|
|||||||
var type = Messages.type[hrefData.type] || hrefData.type;
|
var type = Messages.type[hrefData.type] || hrefData.type;
|
||||||
common.displayThumbnail(data.href, $span, function ($thumb) {
|
common.displayThumbnail(data.href, $span, function ($thumb) {
|
||||||
// Called only if the thumbnail exists
|
// Called only if the thumbnail exists
|
||||||
$span.find('.cp-icon').addClass('cp-app-drive-element-list');
|
// Remove the .hide() added by displayThumnail() because it hides the icon in
|
||||||
|
// list mode too
|
||||||
|
$span.find('.cp-icon').removeAttr('style').addClass('cp-app-drive-element-list');
|
||||||
$thumb.addClass('cp-app-drive-element-grid')
|
$thumb.addClass('cp-app-drive-element-grid')
|
||||||
.addClass('cp-app-drive-element-thumbnail');
|
.addClass('cp-app-drive-element-thumbnail');
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user