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

Unified Diff: ui/webui/resources/js/cr/ui/dialogs.js

Issue 108163005: [Files.app] Remove OK and Cancel buttons in task picker dialog (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reupload Created 7 years 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
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_;
};

Powered by Google App Engine
This is Rietveld 408576698