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

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

Issue 1124213004: Fixed Chrome OS password changing dialog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « chrome/browser/resources/chromeos/login/gaia_password_changed.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/login/gaia_password_changed.js
diff --git a/chrome/browser/resources/chromeos/login/gaia_password_changed.js b/chrome/browser/resources/chromeos/login/gaia_password_changed.js
index a0046786f690c6e093b27b4558b1c3b7aa59dcbd..9887a4b41a248101a0f6ab51465e6caaf987099c 100644
--- a/chrome/browser/resources/chromeos/login/gaia_password_changed.js
+++ b/chrome/browser/resources/chromeos/login/gaia_password_changed.js
@@ -5,21 +5,21 @@
Polymer('gaia-password-changed', {
invalidate: function() {
- this.$.oldPasswordInput.setValid(false);
+ this.$.oldPasswordInput.isInvalid = true;
},
reset: function() {
this.$.animatedPages.selected = 0;
this.clearPassword();
- this.$.oldPasswordInput.setValid(true);
+ this.$.oldPasswordInput.isInvalid = false;
this.disabled = false;
this.$.closeButton.hidden = false;
this.$.oldPasswordCard.classList.remove('disabled');
},
ready: function() {
- this.$.oldPasswordInput.addEventListener('buttonClick', function() {
- var inputPassword = this.$.oldPasswordInput.inputValue;
+ this.$.oldPasswordInputForm.addEventListener('submit', function() {
+ var inputPassword = this.$.oldPasswordInput.value;
if (!inputPassword)
this.invalidate();
else {
@@ -36,7 +36,7 @@ Polymer('gaia-password-changed', {
},
set disabled(value) {
- this.$.oldPasswordInput.disabled = value;
+ this.$.oldPasswordInputForm.disabled = value;
},
onForgotPasswordClicked: function() {
@@ -45,7 +45,7 @@ Polymer('gaia-password-changed', {
},
onTryAgainClicked: function() {
- this.$.oldPasswordInput.setValid(true);
+ this.$.oldPasswordInput.isInvalid = false;
this.$.animatedPages.selected -= 1;
},
@@ -54,7 +54,7 @@ Polymer('gaia-password-changed', {
},
clearPassword: function() {
- this.$.oldPasswordInput.inputValue = '';
+ this.$.oldPasswordInput.value = '';
},
onProceedClicked: function() {
« no previous file with comments | « chrome/browser/resources/chromeos/login/gaia_password_changed.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698