Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(288)

Unified Diff: ui/file_manager/file_manager/foreground/js/ui/file_table.js

Issue 899313002: Show thumbnail on list view only when the file is image or video. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: isAudio -> isVideo Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/foreground/js/ui/file_table.js
diff --git a/ui/file_manager/file_manager/foreground/js/ui/file_table.js b/ui/file_manager/file_manager/foreground/js/ui/file_table.js
index dc2f5e0077cc3a38a9872a9de20fd465d4001aed..953a70a907b1407d135ae316cf2dd715995d602b 100644
--- a/ui/file_manager/file_manager/foreground/js/ui/file_table.js
+++ b/ui/file_manager/file_manager/foreground/js/ui/file_table.js
@@ -475,7 +475,8 @@ FileTable.prototype.renderName_ = function(entry, columnId, table) {
(this.ownerDocument.createElement('div'));
var icon = this.renderIconType_(entry, columnId, table);
- icon.appendChild(this.renderThumbnail_(entry));
+ if (FileType.isImage(entry) || FileType.isVideo(entry))
+ icon.appendChild(this.renderThumbnail_(entry));
icon.appendChild(this.renderCheckmark_());
label.appendChild(icon);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698