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

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

Issue 14797006: Files.app: Changed the item click behavior of auto complete list. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 7 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: 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 00a54f9d00e2c86927ba17b3c60fa62bb01031c5..81e7464a391f44c35ad6701fdb77cb638d407105 100644
--- a/chrome/browser/resources/file_manager/js/file_manager.js
+++ b/chrome/browser/resources/file_manager/js/file_manager.js
@@ -3407,9 +3407,13 @@ DialogType.isModal = function(type) {
var mimeType = props[0].contentMimeType || '';
var mimeTypes = [mimeType];
var openIt = function() {
- var tasks = new FileTasks(self);
- tasks.init(urls, mimeTypes);
- tasks.executeDefault();
+ if (self.dialogType == DialogType.FULL_PAGE) {
+ var tasks = new FileTasks(self);
+ tasks.init(urls, mimeTypes);
+ tasks.executeDefault();
+ } else {
+ self.onOk_();
+ }
}
yoshiki 2013/05/07 02:30:01 nit: add a semicolon at the last.
hirono 2013/05/07 03:20:40 Done.
// Change the current directory to the directory that contains the
« 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