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

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

Issue 397543002: Gallery.app: Don't dispatch an event to update when renaming is not done. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | ui/file_manager/gallery/js/gallery_item.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/gallery/js/gallery.js
diff --git a/ui/file_manager/gallery/js/gallery.js b/ui/file_manager/gallery/js/gallery.js
index 67caf43afb4c9f60fb762fdddbb8bd702967eb1a..2b49b4409dd3c80c4fbfac1ced8440ee7f43db65 100644
--- a/ui/file_manager/gallery/js/gallery.js
+++ b/ui/file_manager/gallery/js/gallery.js
@@ -774,6 +774,8 @@ Gallery.prototype.onFilenameEditBlur_ = function(event) {
event.metadata = null; // Metadata unchanged.
this.dataModel_.dispatchEvent(event);
}.bind(this), function(error) {
+ if (error === 'NOT_CHANGED')
+ return;
this.filenameEdit_.value =
ImageUtil.getDisplayNameFromName(item.getEntry().name);
this.filenameEdit_.focus();
« no previous file with comments | « no previous file | ui/file_manager/gallery/js/gallery_item.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698