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

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

Issue 12217033: filemanager: Update the icons in the left nav. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: jfyi, follow file namings. Created 7 years, 10 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 | « chrome/browser/resources/file_manager/images/files/volumes/folder.png ('k') | 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 7d9128c9cf6f1d1052674348a1d92f547c7d53ce..b032f5e9e02ee12c79bb8824c7435e8a0e1846d2 100644
--- a/chrome/browser/resources/file_manager/js/file_manager.js
+++ b/chrome/browser/resources/file_manager/js/file_manager.js
@@ -1412,14 +1412,18 @@ DialogType.isModal = function(type) {
var rootType = PathUtil.getRootType(path);
+ var iconDiv = this.document_.createElement('div');
+ iconDiv.className = 'volume-icon';
+ iconDiv.setAttribute('volume-type-icon', rootType);
+ if (rootType === RootType.REMOVABLE) {
+ iconDiv.setAttribute('volume-subtype',
+ this.volumeManager_.getDeviceType(path));
+ }
+ li.appendChild(iconDiv);
+
var div = this.document_.createElement('div');
div.className = 'root-label';
- div.setAttribute('volume-type-icon', rootType);
- if (rootType === RootType.REMOVABLE)
- div.setAttribute('volume-subtype',
- this.volumeManager_.getDeviceType(path));
-
div.textContent = PathUtil.getRootLabel(path);
li.appendChild(div);
« no previous file with comments | « chrome/browser/resources/file_manager/images/files/volumes/folder.png ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698