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

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

Issue 79683004: Merge 234982 "[Files.app] Make the file-type dropbox at the bott..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1700/src/
Patch Set: Created 7 years, 1 month 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 | chrome/browser/resources/file_manager/main.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/file_manager/foreground/js/file_manager.js
===================================================================
--- chrome/browser/resources/file_manager/foreground/js/file_manager.js (revision 236391)
+++ chrome/browser/resources/file_manager/foreground/js/file_manager.js (working copy)
@@ -1318,14 +1318,13 @@
}
var options = this.fileTypeSelector_.querySelectorAll('option');
- if (options.length < 2) {
- // There is in fact no choice, hide the selector.
- this.fileTypeSelector_.hidden = true;
- return;
- }
+ if (options.length >= 2) {
+ // There is in fact no choice, show the selector.
+ this.fileTypeSelector_.hidden = false;
- this.fileTypeSelector_.addEventListener('change',
- this.updateFileTypeFilter_.bind(this));
+ this.fileTypeSelector_.addEventListener('change',
+ this.updateFileTypeFilter_.bind(this));
+ }
};
/**
« no previous file with comments | « no previous file | chrome/browser/resources/file_manager/main.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698