| Index: ui/file_manager/file_manager/foreground/js/dialog_action_controller.js
|
| diff --git a/ui/file_manager/file_manager/foreground/js/dialog_action_controller.js b/ui/file_manager/file_manager/foreground/js/dialog_action_controller.js
|
| index 1ae70f567f174b3325c861709924a807c002cc56..4fe223b9ae4ecc14c6e36afbb46b7e0ea7c88122 100644
|
| --- a/ui/file_manager/file_manager/foreground/js/dialog_action_controller.js
|
| +++ b/ui/file_manager/file_manager/foreground/js/dialog_action_controller.js
|
| @@ -125,7 +125,8 @@ function DialogActionController(
|
| this.fileTypes_, launchParam.includeAllFiles);
|
| this.onFileTypeFilterChanged_();
|
|
|
| - this.newFolderCommand_ = document.getElementById('new-folder');
|
| + this.newFolderCommand_ =
|
| + /** @type {cr.ui.Command} */ (document.getElementById('new-folder'));
|
| this.newFolderCommand_.addEventListener(
|
| 'disabledChange', this.updateNewFolderButton_.bind(this));
|
| }
|
| @@ -138,7 +139,8 @@ DialogActionController.prototype.processOKActionForSaveDialog_ = function() {
|
|
|
| // If OK action is clicked when a directory is selected, open the directory.
|
| if (selection.directoryCount === 1 && selection.fileCount === 0) {
|
| - this.directoryModel_.changeDirectoryEntry(selection.entries[0]);
|
| + this.directoryModel_.changeDirectoryEntry(
|
| + /** @type {!DirectoryEntry} */ (selection.entries[0]));
|
| return;
|
| }
|
|
|
|
|