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

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

Issue 14702006: Merge 198700 "Changed the item click behavior of auto complete l..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1500/src/
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
===================================================================
--- chrome/browser/resources/file_manager/js/file_manager.js (revision 199682)
+++ chrome/browser/resources/file_manager/js/file_manager.js (working copy)
@@ -3456,10 +3456,14 @@
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