| Index: ui/webui/resources/js/cr/ui/dialogs.js
|
| diff --git a/ui/webui/resources/js/cr/ui/dialogs.js b/ui/webui/resources/js/cr/ui/dialogs.js
|
| index c8c4c97c7494a353e94a4d76adb58b2c63d10f62..5a64fb476754405098207a0b9385228ef2c64a28 100644
|
| --- a/ui/webui/resources/js/cr/ui/dialogs.js
|
| +++ b/ui/webui/resources/js/cr/ui/dialogs.js
|
| @@ -66,22 +66,22 @@ cr.define('cr.ui.dialogs', function() {
|
| this.text_.className = 'cr-dialog-text';
|
| this.frame_.appendChild(this.text_);
|
|
|
| - var buttons = doc.createElement('div');
|
| - buttons.className = 'cr-dialog-buttons';
|
| - this.frame_.appendChild(buttons);
|
| + this.buttons_ = doc.createElement('div');
|
| + this.buttons_.className = 'cr-dialog-buttons';
|
| + this.frame_.appendChild(this.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.buttons_.appendChild(this.okButton_);
|
|
|
| this.cancelButton_ = doc.createElement('button');
|
| this.cancelButton_.className = 'cr-dialog-cancel';
|
| this.cancelButton_.textContent = BaseDialog.CANCEL_LABEL;
|
| this.cancelButton_.addEventListener('click',
|
| this.onCancelClick_.bind(this));
|
| - buttons.appendChild(this.cancelButton_);
|
| + this.buttons_.appendChild(this.cancelButton_);
|
|
|
| this.initialFocusElement_ = this.okButton_;
|
| };
|
|
|