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

Unified Diff: chrome/browser/resources/filebrowse.html

Issue 2957005: Fixing mistake in chrome that would cause save as to not work.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 5 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/filebrowse.html
===================================================================
--- chrome/browser/resources/filebrowse.html (revision 51982)
+++ chrome/browser/resources/filebrowse.html (working copy)
@@ -852,8 +852,10 @@
function getDataForPath(path) {
if (path == 'roots' ) {
if (inSaveMode) {
- var newfolderbutton = $('newfolderbutton');
- newfolderbutton.className = 'filebutton newfolderbutton disabled';
+ if (advancedEnabled) {
+ var newfolderbutton = $('newfolderbutton');
+ newfolderbutton.className = 'filebutton newfolderbutton disabled';
+ }
var savebutton = $('savebutton');
savebutton.className = 'filebutton openbutton disabled';
} else if (inSelectMode) {
@@ -863,8 +865,10 @@
chrome.send('getRoots', []);
} else {
if (inSaveMode) {
- var newfolderbutton = $('newfolderbutton');
- newfolderbutton.className = 'filebutton newfolderbutton';
+ if (advancedEnabled) {
+ var newfolderbutton = $('newfolderbutton');
+ newfolderbutton.className = 'filebutton newfolderbutton';
+ }
var savebutton = $('savebutton');
savebutton.className = 'filebutton openbutton';
} else if (inSelectMode) {
« 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