Index: ui/file_manager/file_manager/foreground/js/file_selection.js |
diff --git a/ui/file_manager/file_manager/foreground/js/file_selection.js b/ui/file_manager/file_manager/foreground/js/file_selection.js |
index ef3ff250c09ce6325ffe8e1559f79a8a60167da3..468364a657b7c5582aec4f31f0ece92daf259eee 100644 |
--- a/ui/file_manager/file_manager/foreground/js/file_selection.js |
+++ b/ui/file_manager/file_manager/foreground/js/file_selection.js |
@@ -159,7 +159,7 @@ FileSelection.prototype.cancelComputing_ = function() { |
function FileSelectionHandler(fileManager) { |
this.fileManager_ = fileManager; |
// TODO(dgozman): create a shared object with most of UI elements. |
- this.okButton_ = fileManager.okButton_; |
+ this.okButton_ = fileManager.ui.dialogFooter.okButton; |
this.filenameInput_ = fileManager.filenameInput_; |
this.previewPanel_ = fileManager.previewPanel_; |
this.taskItems_ = fileManager.taskItems_; |