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

Unified Diff: chrome/browser/resources/shared/js/cr/ui/dialogs.js

Issue 8547008: [filebrowser] Update dialogs layout (prompt, alert, etc.). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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 | « chrome/browser/resources/file_manager/js/mock_chrome.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/shared/js/cr/ui/dialogs.js
===================================================================
--- chrome/browser/resources/shared/js/cr/ui/dialogs.js (revision 110891)
+++ chrome/browser/resources/shared/js/cr/ui/dialogs.js (working copy)
@@ -52,6 +52,12 @@
buttons.className = 'cr-dialog-buttons';
this.frame_.appendChild(buttons);
+ this.okButton_ = doc.createElement('button');
+ this.okButton_.className = 'cr-dialog-ok';
+ this.okButton_.textContent = BaseDialog.OK_LABEL;
+ this.okButton_.addEventListener('click', this.onOkClick_.bind(this));
+ buttons.appendChild(this.okButton_);
+
this.cancelButton_ = doc.createElement('button');
this.cancelButton_.className = 'cr-dialog-cancel';
this.cancelButton_.textContent = BaseDialog.CANCEL_LABEL;
@@ -59,12 +65,6 @@
this.onCancelClick_.bind(this));
buttons.appendChild(this.cancelButton_);
- this.okButton_ = doc.createElement('button');
- this.okButton_.className = 'cr-dialog-ok';
- this.okButton_.textContent = BaseDialog.OK_LABEL;
- this.okButton_.addEventListener('click', this.onOkClick_.bind(this));
- buttons.appendChild(this.okButton_);
-
this.initialFocusElement_ = this.okButton_;
};
« no previous file with comments | « chrome/browser/resources/file_manager/js/mock_chrome.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698