17 lines
570 B
JavaScript
17 lines
570 B
JavaScript
function loginin(){
|
||
$('#main_login_form').submit(); //表单提交没有任何反应的原因:js冲突
|
||
}
|
||
|
||
function register(){
|
||
if($("#loginUpButton").hasClass('new_login_submit_disable')){
|
||
return;
|
||
}
|
||
if($login_correct && $mail_correct && $passwd_correct && $passwd_comfirm_correct && $("#read_and_confirm").attr("checked") == 'checked'){
|
||
$("#main_reg_form").submit();
|
||
}else{
|
||
$('#user_login').blur();
|
||
$('#user_mail').blur();
|
||
$('#user_password').blur();
|
||
$('#user_password_confirmation').blur();
|
||
}
|
||
} |