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

Unified Diff: elements/viewer-password-screen/viewer-password-screen.html

Issue 176883002: Fixed some stylistic issues with <viewer-password-screen> (Closed) Base URL: https://chromium.googlesource.com/chromium/html-office-public.git@master
Patch Set: Created 6 years, 10 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: 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);
« 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