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()); |
+ } |
} |
/** |