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

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

Issue 7462022: only display downloads warning in full-tab view. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
« 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 cfff3c4ee8e5c37816c48f6d512370eafa26065a..271d69a98d55cc5250042d23af6cd927b40dbc47 100644
--- a/chrome/browser/resources/file_manager/js/file_manager.js
+++ b/chrome/browser/resources/file_manager/js/file_manager.js
@@ -2407,7 +2407,8 @@ FileManager.prototype = {
* @param {cr.Event} event The directory-changed event.
*/
FileManager.prototype.onDirectoryChanged_ = function(event) {
- if (this.currentDirEntry_.fullPath.substr(0, DOWNLOADS_DIRECTORY.length) ==
+ if (this.dialogType_ == FileManager.DialogType.FULL_PAGE &&
+ this.currentDirEntry_.fullPath.substr(0, DOWNLOADS_DIRECTORY.length) ==
DOWNLOADS_DIRECTORY) {
if (this.downloadsWarning_.style.height != DOWNLOADS_WARNING_HEIGHT) {
// Current path starts with DOWNLOADS_DIRECTORY, show the warning.
« 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