From 806f50eee3c8d63c8c8bceb89a3595e14cc303c5 Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 7 Apr 2021 20:50:34 +0200 Subject: register: more ui/ux work --- view/js/mod_register.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'view/js') diff --git a/view/js/mod_register.js b/view/js/mod_register.js index 16f9b6da1..1b61e2b3d 100644 --- a/view/js/mod_register.js +++ b/view/js/mod_register.js @@ -14,11 +14,11 @@ $(document).ready(function() { //ano } else { if (tao.zar.patema.test(tao.zar.form.email) == false ) { - $('#help_email').removeClass('text-muted').addClass('zuirise').html(tao.zar.msg.ZAR0239E); + $('#help_email').removeClass('text-muted').addClass('text-danger').html(tao.zar.msg.ZAR0239E); zFormError('#help_email',true); } else { $.get('register/email_check.json?f=&email=' + encodeURIComponent(tao.zar.form.email), function(data) { - $('#help_email').removeClass('text-muted').addClass('zuirise').html(data.message); + $('#help_email').removeClass('text-muted').addClass('text-danger').html(data.message); zFormError('#help_email',data.error); }); } @@ -30,7 +30,7 @@ $(document).ready(function() { $('#id_password').change(function() { if(($('#id_password').val()).length < 6 ) { - $('#help_password').removeClass('text-muted').addClass('zuirise').html(aStr.pwshort); + $('#help_password').removeClass('text-muted').addClass('text-danger').html(aStr.pwshort); zFormError('#help_password', true); } else { @@ -42,7 +42,7 @@ $(document).ready(function() { }); $('#id_password2').change(function() { if($('#id_password').val() != $('#id_password2').val()) { - $('#help_password2').removeClass('text-muted').addClass('zuirise').html(aStr.pwnomatch); + $('#help_password2').removeClass('text-muted').addClass('text-danger').html(aStr.pwnomatch); zFormError('#help_password2', true); $('#id_password').focus(); } -- cgit v1.2.3