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

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: Addressed a comment. 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..f96390252151e48a7b2c67a3d7289deca000ef0c 100644
--- a/chrome/browser/resources/file_manager/js/file_manager.js
+++ b/chrome/browser/resources/file_manager/js/file_manager.js
@@ -3407,10 +3407,14 @@ 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_();
+ }
+ };
// Change the current directory to the directory that contains the
// selected file. Note that this is necessary for an image or a video,
« 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