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

Unified Diff: chrome/browser/resources/chromeos/login/gaia_input_form.js

Issue 1115993002: ChromeOS Gaia: SAML password confirmation dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 7 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
Index: chrome/browser/resources/chromeos/login/gaia_input_form.js
diff --git a/chrome/browser/resources/chromeos/login/gaia_input_form.js b/chrome/browser/resources/chromeos/login/gaia_input_form.js
index d3b13fed1604c5c27f5dde6ea6c30ef8872b92d0..811f08b989c7aa1139666a534129548a9d013f9c 100644
--- a/chrome/browser/resources/chromeos/login/gaia_input_form.js
+++ b/chrome/browser/resources/chromeos/login/gaia_input_form.js
@@ -12,6 +12,13 @@ Polymer('gaia-input-form', (function() {
onKeyDown: function(e) {
if (e.keyCode == 13 && !this.$.button.disabled)
this.onButtonClicked();
- }
+ },
+
+ set disabled(value) {
+ var controls = this.querySelectorAll(
+ ':host /deep/ [role="button"], :host /deep/ [is="core-input"]');
+ for (var i = 0, control; control = controls[i]; ++i)
+ control.disabled = value;
+ },
};
})());

Powered by Google App Engine
This is Rietveld 408576698