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

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

Issue 962103002: Files.app: Introduce check-select mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove remaining debug log. Created 5 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
Index: ui/file_manager/file_manager/foreground/js/toolbar_controller.js
diff --git a/ui/file_manager/file_manager/foreground/js/toolbar_controller.js b/ui/file_manager/file_manager/foreground/js/toolbar_controller.js
index 1874caa45f4f70f1db0459b55908810965fd72bf..2e9ccda3aa8583a1b6cc1b26b0660998fd77a184 100644
--- a/ui/file_manager/file_manager/foreground/js/toolbar_controller.js
+++ b/ui/file_manager/file_manager/foreground/js/toolbar_controller.js
@@ -121,8 +121,13 @@ ToolbarController.prototype.onSelectionChanged_ = function() {
// update the checkmark visibility on grid view. This should be moved to a
// controller which controls whole app window. Or, both toolbar and FileGrid
// should listen to the FileSelectionHandler.
- this.filesSelectedLabel_.ownerDocument.body.classList.toggle(
- 'selecting', selection.totalCount > 0);
+ if (this.directoryModel_.getFileListSelection().multiple) {
+ this.filesSelectedLabel_.ownerDocument.body.classList.toggle(
+ 'selecting', selection.totalCount > 0);
+ this.filesSelectedLabel_.ownerDocument.body.classList.toggle(
+ 'check-select',
+ this.directoryModel_.getFileListSelection().getCheckSelectMode());
+ }
}
/**
« no previous file with comments | « ui/file_manager/file_manager/foreground/js/main_scripts.js ('k') | ui/file_manager/file_manager/foreground/js/ui/file_grid.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698