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

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

Issue 10827316: [FileBrowser] Added newfolder button. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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/file_manager.js
diff --git a/chrome/browser/resources/file_manager/js/file_manager.js b/chrome/browser/resources/file_manager/js/file_manager.js
index d60c32803e8cb4eaf56aa867aeab7fdf59898b0b..6315a1d12a8fe7f3336abf44942d8df453a744f6 100644
--- a/chrome/browser/resources/file_manager/js/file_manager.js
+++ b/chrome/browser/resources/file_manager/js/file_manager.js
@@ -670,6 +670,9 @@ FileManager.prototype = {
this.defaultActionMenuItem_.addEventListener('activate',
this.dispatchSelectionAction_.bind(this));
+ this.dialogDom_.querySelector('#new-folder').addEventListener('click',
+ this.onNewFolderCommand_.bind(this));
+
this.fileTypeSelector_ = this.dialogDom_.querySelector('#file-type');
this.initFileTypeFilter_();
// Populate the static localized strings.
@@ -2056,7 +2059,7 @@ FileManager.prototype = {
* nothing if no item is being renamed or such an item disappeared.
*
* While refreshing file list it gets repopulated with new file entries.
- * There is not a big difference wether DOM items stay the same or not.
+ * There is not a big difference whether DOM items stay the same or not.
* Except for the item that the user is renaming.
*/
FileManager.prototype.restoreItemBeingRenamed_ = function() {
« no previous file with comments | « chrome/browser/resources/file_manager/css/file_manager.css ('k') | chrome/browser/resources/file_manager/main.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698