| Index: elements/viewer-password-screen/viewer-password-screen.html
|
| diff --git a/elements/viewer-password-screen/viewer-password-screen.html b/elements/viewer-password-screen/viewer-password-screen.html
|
| index 45c94819a63dddce9f9e063b5050416db4e3c552..fa64893d747727ed8f88080e12136ee97d981e0d 100644
|
| --- a/elements/viewer-password-screen/viewer-password-screen.html
|
| +++ b/elements/viewer-password-screen/viewer-password-screen.html
|
| @@ -16,9 +16,6 @@
|
| active: false,
|
| timerId: undefined,
|
| ready: function () {
|
| - // Prevent default form submit behavior from occuring.
|
| - this.$.submit.click = null;
|
| -
|
| this.activeChanged();
|
| },
|
| accept: function() {
|
| @@ -35,15 +32,16 @@
|
| this.$.password.select();
|
| },
|
| submit: function(e) {
|
| + // Prevent the default form submission behavior.
|
| e.preventDefault();
|
| if (this.$.password.value.length == 0)
|
| - return false;
|
| + return;
|
| this.successMessage = '...';
|
| this.$.successMessage.style.color = 'rgb(0,0,0)';
|
| this.$.password.disabled = true;
|
| this.$.submit.disabled = true;
|
| - this.fire('password-submitted', { password: this.$.password.value });
|
| - return false;
|
| + this.fire('password-submitted', {password: this.$.password.value});
|
| + return;
|
| },
|
| activeChanged: function() {
|
| clearTimeout(this.timerId);
|
|
|