Merge branch 'dev_hjq' of http://repository.trustie.net/xianbo/trustie2 into dev_hjq

This commit is contained in:
huang 2015-09-07 16:08:51 +08:00
commit 402c0b5173
2 changed files with 15 additions and 5 deletions

View File

@ -24,16 +24,24 @@
if(email == "") if(email == "")
{ {
$("#valid_email").text("<%= l(:label_input_email_blank)%>"); $("#valid_email").text("<%= l(:label_input_email_blank)%>");
return false;
} }
else if (filter.test(email)) { else if(!filter.test(email))
$("#valid_email").html(""); {
return true; $("#valid_email").text("<%= l(:label_email_format_error)%>");
return false;
}
else if(email.split('@')[0].length >= 20)
{
$("#valid_email").text("邮箱名过长,最长为20个字符");
return false;
} }
else else
{ {
$("#valid_email").text("<%= l(:label_email_format_error)%>"); $("#valid_email").text("");
return true;
} }
return false;
} }
function senderEmail(obj) function senderEmail(obj)

View File

@ -418,6 +418,8 @@ div.flash.notice {
background-color: #dfffdf; background-color: #dfffdf;
border-color: #9fcf9f; border-color: #9fcf9f;
color: #005f00; color: #005f00;
word-wrap: break-word;
word-break: break-all
} }
div.flash.warning, .conflict { div.flash.warning, .conflict {