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

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

Issue 931603002: Update the thumbnail when a file is updated. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix failed test case. 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
Index: ui/file_manager/file_manager/foreground/js/ui/file_grid.js
diff --git a/ui/file_manager/file_manager/foreground/js/ui/file_grid.js b/ui/file_manager/file_manager/foreground/js/ui/file_grid.js
index 9bca26c8096fe69c88de8877146eddc70734e938..cdaf6c175814a580823d855c3bb8e0973196c33e 100644
--- a/ui/file_manager/file_manager/foreground/js/ui/file_grid.js
+++ b/ui/file_manager/file_manager/foreground/js/ui/file_grid.js
@@ -322,7 +322,7 @@ FileGrid.decorateThumbnailBox_ = function(
* @private
*/
FileGrid.setThumbnailImage_ = function(thumbnail, dataUrl) {
- thumbnail.classList.add('thumbnail');
+ // TODO(yawano): Add transition animation for thumbnail update.
thumbnail.style.backgroundImage = 'url(' + dataUrl + ')';
thumbnail.classList.add('loaded');
};

Powered by Google App Engine
This is Rietveld 408576698