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

Unified Diff: ui/file_manager/gallery/js/ribbon.js

Issue 343873002: Gallery.app: Fix thumbnail update of the ribbon in the slide mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed. Created 6 years, 6 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/gallery/js/ribbon.js
diff --git a/ui/file_manager/gallery/js/ribbon.js b/ui/file_manager/gallery/js/ribbon.js
index 32aaacacb4463063ad777f716f949b9afd1143fe..76a351b2d7d8711bb21e2cbffde0e74cfff36012 100644
--- a/ui/file_manager/gallery/js/ribbon.js
+++ b/ui/file_manager/gallery/js/ribbon.js
@@ -344,13 +344,8 @@ Ribbon.prototype.setThumbnailImage_ = function(thumbnail, entry, metadata) {
*/
Ribbon.prototype.onContentChange_ = function(event) {
var url = event.item.getEntry().toURL();
- if (event.oldEntry.toURL() !== url) {
+ if (event.oldEntry.toURL() !== url)
this.remapCache_(event.oldEntry.toURL(), url);
- } else {
- delete this.renderCache_[url];
- var index = this.dataModel_.indexOf(event.item);
- this.renderThumbnail_(index);
- }
var thumbnail = this.renderCache_[url];
if (thumbnail && event.metadata)
« 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