From 1566d132f61ea644afb8283a608af66cc8192bc9 Mon Sep 17 00:00:00 2001 From: James Ketrenos Date: Fri, 28 Sep 2018 01:48:02 -0700 Subject: [PATCH] Cleaned up login/account creation page Signed-off-by: James Ketrenos --- frontend/src/ketr-photos/ketr-photos.html | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/frontend/src/ketr-photos/ketr-photos.html b/frontend/src/ketr-photos/ketr-photos.html index a02f78a..421ee43 100755 --- a/frontend/src/ketr-photos/ketr-photos.html +++ b/frontend/src/ketr-photos/ketr-photos.html @@ -385,7 +385,7 @@ -
create
+
create
@@ -478,11 +478,11 @@ return !username || username == "" || !password || password == ""; }, - disableCreate: function(username, name, mail, password) { - return !username || username == "" || + disableCreate: function(mail, password, name, who) { + return !mail || mail == "" || !password || password == "" || !name || name == "" || - !mail || mail == ""; + !who || who == ""; }, enterCheck: function(event) { @@ -490,7 +490,9 @@ var next = event.currentTarget.nextElementSibling; event.preventDefault(); if (next.tagName.toLowerCase() == "paper-button") { - next.click(); + if (!next.disabled) { + next.click(); + } } else { this.async(function(next) { next._focusableElement.focus();