From 99d6012718176dc77e5d3004d59cfbd01374d873 Mon Sep 17 00:00:00 2001 From: ouyangxuhua Date: Thu, 17 Sep 2015 14:37:45 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E9=82=80=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/projects/invite_members_by_mail.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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| %> + <% if inviter_list.user != nil %> + <% end %>
@@ -108,6 +109,7 @@ <%= status_for_ivitied(inviter_list, @project) %>
<% end %>