| Index: chrome/browser/resources/pdf/elements/viewer-password-screen/viewer-password-screen.js
|
| diff --git a/chrome/browser/resources/pdf/elements/viewer-password-screen/viewer-password-screen.js b/chrome/browser/resources/pdf/elements/viewer-password-screen/viewer-password-screen.js
|
| index 0ca52a64a8ecb2283638db87b83c0554566fb041..ef1f1284a9fadc7e52ff9b99a7cb05a4f5b7fdf6 100644
|
| --- a/chrome/browser/resources/pdf/elements/viewer-password-screen/viewer-password-screen.js
|
| +++ b/chrome/browser/resources/pdf/elements/viewer-password-screen/viewer-password-screen.js
|
| @@ -25,18 +25,20 @@ Polymer({
|
| },
|
|
|
| deny: function() {
|
| - this.$.password.disabled = false;
|
| + var password = /** @type {!PaperInputElement} */ (this.$.password);
|
| + password.disabled = false;
|
| this.$.submit.disabled = false;
|
| this.invalid = true;
|
| - this.$.password.focus();
|
| - this.$.password.inputElement.select();
|
| + password.focus();
|
| + password.inputElement.select();
|
| },
|
|
|
| submit: function() {
|
| - if (this.$.password.value.length == 0)
|
| + var password = /** @type {!PaperInputElement} */ (this.$.password);
|
| + if (password.value.length == 0)
|
| return;
|
| - this.$.password.disabled = true;
|
| + password.disabled = true;
|
| this.$.submit.disabled = true;
|
| - this.fire('password-submitted', {password: this.$.password.value});
|
| + this.fire('password-submitted', {password: password.value});
|
| },
|
| });
|
|
|