Commit d862b1f7 authored by rginda@chromium.org's avatar rginda@chromium.org

only display downloads warning in full-tab view.

BUG=chromium-os:18984
TEST=manual testing in chromeos-chrome on linux

Review URL: http://codereview.chromium.org/7462022

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96260 0039d316-1c4b-4281-b951-d872f2087c98
parent 2234197a
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment