|
@@ -131,6 +131,7 @@ function bindModalEvent(){
|
|
|
$(".modalAction .eye").off("click").on("click",function(){
|
|
|
switchPwd($(this))
|
|
|
})
|
|
|
+
|
|
|
$("#oldWord").off("input").on("input",function(){
|
|
|
switchToPsd($(this));
|
|
|
const text = $(this).val();
|
|
@@ -139,6 +140,9 @@ function bindModalEvent(){
|
|
|
if(text.trim()){
|
|
|
$("#newWord").attr("disabled",false);
|
|
|
}
|
|
|
+ if(!$(".modalAction .warning:visible").length){
|
|
|
+ $(".alertModal .sureChange").addClass("active");
|
|
|
+ }
|
|
|
});
|
|
|
$("#newWord").off("input").on("input",function(){
|
|
|
switchToPsd($(this));
|
|
@@ -455,6 +459,7 @@ function changeWord(oldword,newword){
|
|
|
}else{
|
|
|
$(".oldWaring b").text(data.msg);
|
|
|
$(".oldWaring").show();
|
|
|
+ $(".alertModal .sureChange").removeClass("active");
|
|
|
return
|
|
|
}
|
|
|
});
|