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

Unified Diff: chrome/browser/resources/file_manager/js/image_editor/gallery.js

Issue 9328041: [filebrowser] In Gallery, do not allow file names starting with dot. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 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: chrome/browser/resources/file_manager/js/image_editor/gallery.js
===================================================================
--- chrome/browser/resources/file_manager/js/image_editor/gallery.js (revision 120559)
+++ chrome/browser/resources/file_manager/js/image_editor/gallery.js (working copy)
@@ -336,6 +336,10 @@
break;
case 13: // Enter
+ if (this.filenameEdit_.value && this.filenameEdit_.value[0] == '.') {
+ this.editor_.getPrompt().show('file_hidden_name', 5000);
+ break;
+ }
if (this.filenameEdit_.value) {
this.renameItem_(this.ribbon_.getSelectedItem(),
this.filenameEdit_.value);

Powered by Google App Engine
This is Rietveld 408576698