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