diff --git a/WebContent/jsp/common/screen/emergency.jsp b/WebContent/jsp/common/screen/emergency.jsp index 01ab044..5ac9ffa 100644 --- a/WebContent/jsp/common/screen/emergency.jsp +++ b/WebContent/jsp/common/screen/emergency.jsp @@ -86,30 +86,33 @@ $("#loginForm").submit(); } function changePwd(){ - if ($("input[name=userId]").val() == null || $("input[name=userId]").val().length == 0 ){ + if ($("input[name=resetUserId]").val() == null || $("input[name=resetUserId]").val().length == 0 ){ alert("<%= localeMessage.getString("login.checkid") %>"); - $("input[name=userId]").trigger("focus"); + $("input[name=resetUserId]").trigger("focus"); return; } - if ($("input[name=password]").val() == null || $("input[name=password]").val().trim().length == 0 ){ + if ($("input[name=resetPassword]").val() == null || $("input[name=resetPassword]").val().trim().length == 0 ){ alert("<%= localeMessage.getString("login.checkpwd1") %>"); - $("input[name=password]").trigger("focus"); + $("input[name=resetPassword]").trigger("focus"); return; } - if ($("input[name=password]").length == 0){ + if ($("input[name=changePassword]").val() == null || $("input[name=changePassword]").val().trim().length == 0 ){ alert("<%= localeMessage.getString("login.checkpwd2") %>"); + $("input[name=changePassword]").trigger("focus"); return ; } - if ($("input[name=changePassword]").length == 0){ + if ($("input[name=confirmPassword]").val() == null || $("input[name=confirmPassword]").val().trim().length == 0 ){ alert("<%= localeMessage.getString("login.checkpwd3") %>"); return ; } - if ($("input[name=confirmPassword]").val() != $("input[name=changePassword]").val()){ + if ($("input[name=confirmPassword]").val() != $("input[name=confirmPassword]").val()){ alert("<%= localeMessage.getString("login.checkpwd4") %>"); + $("input[name=confirmPassword]").trigger("focus"); return ; } - if ($("input[name=userId]").val() == $("input[name=changePassword]").val()){ + if ($("input[name=resetUserId]").val() == $("input[name=changePassword]").val()){ alert("<%= localeMessage.getString("login.checkpwd5") %>"); + $("input[name=changePassword]").trigger("focus"); return ; } @@ -121,21 +124,6 @@ --%> $("form").submit(); } - - function openPwdChgWindow() { - - <% - if(sysMode.equals("T") || sysMode.equals("D")) { - %> - windowOpen("http://ssodev.kbankwithu.com:7010", "PopupWindow", 1024, 768); - <% - } else { - %> - windowOpen("https://ssoap.kbankwithu.com/nls3/clientLogin.jsp", "PopupWindow", 1024, 768); - <% - } - %> - } $(document).ready(function() { $("input[name=userId]").keydown(function(event){ @@ -215,18 +203,18 @@
<%=resultMsg %>
+ -<%--