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

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

Issue 129973002: Revert partially "cros: Use AlertDialog for remora device requisition." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 780b9ba49194aac16e93227f770e7ced1ec833b5..3a3456fbca72052bb8ca5d695e41513a949c4cb3 100644
--- a/ui/webui/resources/js/cr/ui/dialogs.js
+++ b/ui/webui/resources/js/cr/ui/dialogs.js
@@ -91,9 +91,7 @@ cr.define('cr.ui.dialogs', function() {
BaseDialog.prototype.onContainerKeyDown_ = function(event) {
// Handle Escape.
- if (event.keyCode == 27 &&
- !this.cancelButton_.disabled &&
- !this.cancelButton_.hidden) {
+ if (event.keyCode == 27 && !this.cancelButton_.disabled) {
this.onCancelClick_(event);
event.stopPropagation();
// Prevent the event from being handled by the container of the dialog.
@@ -244,8 +242,7 @@ cr.define('cr.ui.dialogs', function() {
*/
function AlertDialog(parentNode) {
BaseDialog.apply(this, [parentNode]);
- this.cancelButton_.hidden = true;
- this.closeButton_.hidden = true;
+ this.cancelButton_.style.display = 'none';
}
AlertDialog.prototype = {__proto__: BaseDialog.prototype};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698