|
|
@ -1483,7 +1483,6 @@ function my_account_form_submit() {
|
|
|
|
if ($("input[name='lastname']").val().trim() == '') {
|
|
|
|
if ($("input[name='lastname']").val().trim() == '') {
|
|
|
|
$("#lastname").focus();
|
|
|
|
$("#lastname").focus();
|
|
|
|
$("#lastname_hint").show();
|
|
|
|
$("#lastname_hint").show();
|
|
|
|
e.stopImmediatePropagation();
|
|
|
|
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$("#lastname_hint").hide();
|
|
|
|
$("#lastname_hint").hide();
|
|
|
@ -1516,16 +1515,31 @@ function my_account_form_submit() {
|
|
|
|
if ($("#nickname").val().trim() == '') {
|
|
|
|
if ($("#nickname").val().trim() == '') {
|
|
|
|
$("#nickname").focus();
|
|
|
|
$("#nickname").focus();
|
|
|
|
$("#nickname_hint").show();
|
|
|
|
$("#nickname_hint").show();
|
|
|
|
e.stopImmediatePropagation();
|
|
|
|
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$("#nickname_hint").hide();
|
|
|
|
$("#nickname_hint").hide();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($("input[name='new_password']").val().length<8){
|
|
|
|
|
|
|
|
$("#new_password").focus();
|
|
|
|
|
|
|
|
$("#new_password_hint").show();
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$("#new_password_hint").hide();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if($("input[name='new_password']").val() !== $("input[name='new_password_confirmation']").val() ){
|
|
|
|
|
|
|
|
$("#new_password_confirmation").focus();
|
|
|
|
|
|
|
|
$("#new_password_confirmation_hint").show();
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$("#new_password_confirmation_hint").hide();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ($("#userIdentity").val() == -1) {
|
|
|
|
if ($("#userIdentity").val() == -1) {
|
|
|
|
$("#identity_hint").show();
|
|
|
|
$("#identity_hint").show();
|
|
|
|
e.stopImmediatePropagation(); // 阻止事件冒泡
|
|
|
|
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
} else{
|
|
|
|
} else{
|
|
|
|
$("#identity_hint").hide();
|
|
|
|
$("#identity_hint").hide();
|
|
|
@ -1533,7 +1547,6 @@ function my_account_form_submit() {
|
|
|
|
|
|
|
|
|
|
|
|
if ($("#userIdentity").val() == 0 && $("#teacher").val() == "0") {
|
|
|
|
if ($("#userIdentity").val() == 0 && $("#teacher").val() == "0") {
|
|
|
|
$("#te_technical_hint").show();
|
|
|
|
$("#te_technical_hint").show();
|
|
|
|
e.stopImmediatePropagation();
|
|
|
|
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
} else{
|
|
|
|
} else{
|
|
|
|
$("#te_technical_hint").hide();
|
|
|
|
$("#te_technical_hint").hide();
|
|
|
@ -1541,7 +1554,6 @@ function my_account_form_submit() {
|
|
|
|
|
|
|
|
|
|
|
|
if ($("#userIdentity").val() == 2 && $("#profession").val() == "0") {
|
|
|
|
if ($("#userIdentity").val() == 2 && $("#profession").val() == "0") {
|
|
|
|
$("#pro_technical_hint").show();
|
|
|
|
$("#pro_technical_hint").show();
|
|
|
|
e.stopImmediatePropagation();
|
|
|
|
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
} else{
|
|
|
|
} else{
|
|
|
|
$("#pro_technical_hint").hide();
|
|
|
|
$("#pro_technical_hint").hide();
|
|
|
@ -1554,7 +1566,6 @@ function my_account_form_submit() {
|
|
|
|
} else{
|
|
|
|
} else{
|
|
|
|
$("#student_id_hint").html('<i class="fa fa-minus-circle mt7 mr5 fl"></i>学号只能由数字和字母组成</span>').show();
|
|
|
|
$("#student_id_hint").html('<i class="fa fa-minus-circle mt7 mr5 fl"></i>学号只能由数字和字母组成</span>').show();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
e.stopImmediatePropagation();
|
|
|
|
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
} else{
|
|
|
|
} else{
|
|
|
|
$("#student_id_hint").hide();
|
|
|
|
$("#student_id_hint").hide();
|
|
|
|