diff --git a/app/views/projects/invite_members_by_mail.html.erb b/app/views/projects/invite_members_by_mail.html.erb index 089efeb08..d590c1608 100644 --- a/app/views/projects/invite_members_by_mail.html.erb +++ b/app/views/projects/invite_members_by_mail.html.erb @@ -31,7 +31,7 @@ $("#valid_email").text("<%= l(:label_email_format_error)%>"); return false; } - else if(email.split('@')[0].length >= 20) + else if(email.split('@')[0].length > 20) { $("#valid_email").text("邮箱名过长,最长为20个字符"); return false; @@ -96,6 +96,7 @@ <% @inviter_lists.each do |inviter_list| %>
<%= inviter_list.user.mail %> | @@ -108,6 +109,7 @@ | <%= status_for_ivitied(inviter_list, @project) %> |