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_; |
}; |