修改密码bug(当前密码输入错误仍可修改密码)修正
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
}
|
||||
|
||||
//$("#pwd,#repwd,#button").prop("style", "display:none;");
|
||||
$("#newPwd,#reNewPwd").attr("readonly","readonly");
|
||||
$("#mysub").attr("disabled", "disabled");
|
||||
$("#oldpwdin").focus();
|
||||
$("#oldpwdin").blur(function() {
|
||||
@@ -48,12 +49,14 @@
|
||||
//$("#oldpwd").prop("style", "display:none;");
|
||||
//$("#pwd,#repwd,#button").prop("style","display;");
|
||||
$("#oldpwdMsg").html("<img src='/img/yes.gif' style='height: 12px'/></br></br>");
|
||||
$("#newPwd,#reNewPwd").removeAttr("readonly");
|
||||
$("#mysub").attr("disabled", "disabled");
|
||||
} else if (msg != null && msg == "faild") {
|
||||
alert("i18n_LoginController.text.userValidateErr_n81i");
|
||||
window.location.href = "/exit";
|
||||
} else {
|
||||
$("#oldpwdMsg").html('<font style="color:red;font-size: 12px;">i18n_resetPwd.text.pwdErr_n81i</br></font>');
|
||||
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user