|
|
|
@ -44,11 +44,11 @@
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function verifyFirstName() {
|
|
|
|
|
var first_name = $.trim($('#first_name').val());
|
|
|
|
|
if(first_name.length > 30)
|
|
|
|
|
function verifyLastName() {
|
|
|
|
|
var last_name = $.trim($('#last_name').val());
|
|
|
|
|
if(last_name.length > 30)
|
|
|
|
|
{
|
|
|
|
|
$("#valid_email").text("用户名字过长,最长为30个字符");
|
|
|
|
|
$("#valid_email").text("用户姓氏过长,最长为30个字符");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
@ -59,11 +59,11 @@
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function verifyLastName() {
|
|
|
|
|
var last_name = $.trim($('#last_name').val());
|
|
|
|
|
if(last_name.length > 30)
|
|
|
|
|
function verifyFirstName() {
|
|
|
|
|
var first_name = $.trim($('#first_name').val());
|
|
|
|
|
if(first_name.length > 30)
|
|
|
|
|
{
|
|
|
|
|
$("#valid_email").text("用户姓氏过长,最长为30个字符");
|
|
|
|
|
$("#valid_email").text("用户名字过长,最长为30个字符");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
@ -76,7 +76,7 @@
|
|
|
|
|
|
|
|
|
|
function senderEmail(obj)
|
|
|
|
|
{
|
|
|
|
|
if(verifyAddress())
|
|
|
|
|
if(verifyAddress() && verifyFirstName() && verifyLastName() )
|
|
|
|
|
{
|
|
|
|
|
obj.parent().submit();
|
|
|
|
|
}
|
|
|
|
@ -110,13 +110,13 @@
|
|
|
|
|
<%= text_field_tag 'mail', '', :class => "fb_item fl", :placeholder => l(:label_input_email), :onkeyup => "this.value=this.value.replace(' ','')", :style => "ime-mode:disabled;", :onblur => "verifyAddress(this);" %>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<%= text_field_tag 'first_name', '', :class => "fb_item_first_name fl", :placeholder => l(:label_input_email_lastname), :onkeyup => "this.value=this.value.replace(' ','')", :style => "ime-mode:disabled;", :onblur => "verifyLastName(this);" %>
|
|
|
|
|
<%= text_field_tag 'last_name', '', :class => "fb_item_first_name fl", :placeholder => l(:label_input_email_lastname), :onkeyup => "this.value=this.value.replace(' ','')", :style => "ime-mode:disabled;", :onblur => "verifyLastName(this);" %>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<%= text_field_tag 'last_name', '', :class => "fb_item_last_name fl", :placeholder => l(:label_input_email_firstname), :onkeyup => "this.value=this.value.replace(' ','')", :style => "ime-mode:disabled;", :onblur => "verifyFirstName(this);" %>
|
|
|
|
|
<%= text_field_tag 'first_name', '', :class => "fb_item_last_name fl", :placeholder => l(:label_input_email_firstname), :onkeyup => "this.value=this.value.replace(' ','')", :style => "ime-mode:disabled;", :onblur => "verifyFirstName(this);" %>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<select class="fb_item_gender fl" id="gender" name="gender"><option value="0">男</option><option value="1">女</option></select>
|
|
|
|
|
<select class="fb_item_gender fl" id="gender" name="gender"><option value="">性别</option><option value="0">男</option><option value="1">女</option></select>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|