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

Unified Diff: ui/file_manager/file_manager/foreground/js/ui/file_manager_ui.js

Issue 694813005: Correct toggle-view button of file_manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/foreground/js/ui/file_manager_ui.js
diff --git a/ui/file_manager/file_manager/foreground/js/ui/file_manager_ui.js b/ui/file_manager/file_manager/foreground/js/ui/file_manager_ui.js
index edb3dc2a3e88c3e672a4406e13247017e6d3c1fc..3fe01ffb856d5378fe4bc991fd9a3a53c12ebbc0 100644
--- a/ui/file_manager/file_manager/foreground/js/ui/file_manager_ui.js
+++ b/ui/file_manager/file_manager/foreground/js/ui/file_manager_ui.js
@@ -221,13 +221,13 @@ FileManagerUI.prototype.setCurrentListType = function(listType) {
switch (listType) {
case ListContainer.ListType.DETAIL:
- this.toggleViewButton.classList.add('table');
- this.toggleViewButton.classList.remove('grid');
+ this.toggleViewButton.classList.remove('table');
+ this.toggleViewButton.classList.add('grid');
break;
case ListContainer.ListType.THUMBNAIL:
- this.toggleViewButton.classList.add('grid');
- this.toggleViewButton.classList.remove('table');
+ this.toggleViewButton.classList.remove('grid');
+ this.toggleViewButton.classList.add('table');
break;
default:
« 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