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();