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

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

Issue 831833003: Open folder as OK action when a folder is selected in save-as dialog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « ui/file_manager/file_manager/foreground/js/dialog_action_controller.js ('k') | 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/dialog_footer.js
diff --git a/ui/file_manager/file_manager/foreground/js/ui/dialog_footer.js b/ui/file_manager/file_manager/foreground/js/ui/dialog_footer.js
index 583e5468d634099a763e4d0c27516ab0838bc304..36a95dc5866d9c8e34ef0f8fbdb3a23ad512639e 100644
--- a/ui/file_manager/file_manager/foreground/js/ui/dialog_footer.js
+++ b/ui/file_manager/file_manager/foreground/js/ui/dialog_footer.js
@@ -57,6 +57,9 @@ function DialogFooter(dialogType, container, filenameInput) {
// Initialize the element styles.
container.classList.add('button-panel');
+
+ // Set initial label for OK button. The label can be updated dynamically
+ // depending on dialog types.
this.okButton.textContent = DialogFooter.getOKButtonLabel_(dialogType);
// Register event handlers.
« no previous file with comments | « ui/file_manager/file_manager/foreground/js/dialog_action_controller.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698