From 3410f77f68f5a584ddf80533bbbf38b1e30c125a Mon Sep 17 00:00:00 2001 From: renfufei Date: Fri, 26 Aug 2016 11:47:54 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E7=95=8C=E9=9D=A2=E7=9A=84?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=A1=86=E6=94=AF=E6=8C=81=E5=9B=9E=E8=BD=A6?= =?UTF-8?q?=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/support/http/resources/login.html | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/src/main/resources/support/http/resources/login.html b/src/main/resources/support/http/resources/login.html index 3031dc74e6..9e5f7351c8 100644 --- a/src/main/resources/support/http/resources/login.html +++ b/src/main/resources/support/http/resources/login.html @@ -55,7 +55,7 @@ The username or password you entered is incorrect.
- +
@@ -83,16 +83,29 @@ else { $("#alertInfo").show(); $("#loginForm")[0].reset(); + $("input[name=loginUsername]").focus(); } }, dataType: "text" }); - } + }, + unamecr : function(e) { + if(e.which == 13) { // 回车键事件 + $("input[name=loginPassword]").focus(); + } + }, + upasscr : function(e) { + if(e.which == 13) { // 回车键事件 + $("#loginBtn").click(); + } + } } }(); $(document).ready(function() { $("#loginBtn").click(druid.login.login); + $("input[name=loginUsername]").keypress(druid.login.unamecr); + $("input[name=loginPassword]").keypress(druid.login.upasscr); });