aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--public/js/register.coffee2
1 files changed, 2 insertions, 0 deletions
diff --git a/public/js/register.coffee b/public/js/register.coffee
index a7285424..342cbea3 100644
--- a/public/js/register.coffee
+++ b/public/js/register.coffee
@@ -29,6 +29,7 @@ $(->
)
$('#confirm').blur(->
+ return if $(this).val() == ''
$(this).parent().next('.alert').remove()
if $('#password').val() == $('#confirm').val()
@@ -39,6 +40,7 @@ $(->
)
$('#email').blur(->
+ return if $(this).val() == ''
$(this).parent().next('.alert').remove()
if validateEmail($(this).val())
$(this).parent().removeClass('has-error')