From: Michael Tremer Date: Sun, 19 Jan 2020 18:31:54 +0000 (+0000) Subject: register: Fix hiding invalid feedback X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6a79a85e6a18f7f3d1af0f968a9e8296f5af81b2;p=ipfire.org.git register: Fix hiding invalid feedback Because the markup has changed, JS did not find the correct elements to hide any more. Signed-off-by: Michael Tremer --- diff --git a/src/templates/auth/register.html b/src/templates/auth/register.html index fc17b524..cf95ac69 100644 --- a/src/templates/auth/register.html +++ b/src/templates/auth/register.html @@ -25,10 +25,10 @@ name="uid" placeholder="{{ _("Username") }}" required autofocus pattern="[a-z_][a-z0-9_-]{3,31}"> -
+
{{ _("Please choose a username in UNIX format with at least four characters, starting with a lowercase letter, followed by only lowercase letters, digits, dash and underscore") }}
-
+
{{ _("This username is not available") }}
@@ -52,13 +52,13 @@
-
+
{{ _("This email address is invalid") }}
-
+
{{ _("This email address cannot be used") }}
-
+
{{ _("This email address is already in use") }}
@@ -99,7 +99,7 @@ valid.uid = false; // Hide all feedback - uid.siblings(".invalid-feedback").hide(); + $(".invalid-feedback-uid").hide(); switch (data.result) { case "ok": @@ -138,7 +138,7 @@ valid.email = false; // Hide all feedback - email.siblings(".invalid-feedback").hide(); + $(".invalid-feedback-email").hide(); switch (data.result) { case "ok":