From bb65c732fc1b2bd7273b96d4b04633f6fb709bbe Mon Sep 17 00:00:00 2001 From: Calvin Date: Fri, 16 Mar 2012 20:52:53 +0800 Subject: [PATCH] =?UTF-8?q?#13=20=E4=BF=AE=E6=AD=A3=E5=B9=B6=E5=8A=A0?= =?UTF-8?q?=E5=BC=BAJquery=20Validate=20Plugin=E7=9A=84=E4=BD=BF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/mini-web/src/main/webapp/WEB-INF/layouts/default.jsp | 2 +- .../src/main/webapp/WEB-INF/views/account/userForm.jsp | 4 ++++ examples/mini-web/src/main/webapp/WEB-INF/views/login.jsp | 4 ++-- .../static/jquery-validation/1.9.0/{milk.css => validate.css} | 0 .../src/main/webapp/WEB-INF/views/common/userForm.jsp | 2 +- .../showcase/src/main/webapp/WEB-INF/views/security/login.jsp | 2 +- .../static/jquery-validation/1.9.0/{milk.css => validate.css} | 0 7 files changed, 9 insertions(+), 5 deletions(-) rename examples/mini-web/src/main/webapp/static/jquery-validation/1.9.0/{milk.css => validate.css} (100%) rename examples/showcase/src/main/webapp/static/jquery-validation/1.9.0/{milk.css => validate.css} (100%) diff --git a/examples/mini-web/src/main/webapp/WEB-INF/layouts/default.jsp b/examples/mini-web/src/main/webapp/WEB-INF/layouts/default.jsp index 9b306c09..24c84eda 100644 --- a/examples/mini-web/src/main/webapp/WEB-INF/layouts/default.jsp +++ b/examples/mini-web/src/main/webapp/WEB-INF/layouts/default.jsp @@ -20,7 +20,7 @@ - + diff --git a/examples/mini-web/src/main/webapp/WEB-INF/views/account/userForm.jsp b/examples/mini-web/src/main/webapp/WEB-INF/views/account/userForm.jsp index 2f4fc485..351f6f24 100644 --- a/examples/mini-web/src/main/webapp/WEB-INF/views/account/userForm.jsp +++ b/examples/mini-web/src/main/webapp/WEB-INF/views/account/userForm.jsp @@ -37,6 +37,7 @@ equalTo: "输入与上面相同的密码" } }, + errorContainer: "#messageBox", errorPlacement: function(error, element) { if ( element.is(":checkbox") ) error.appendTo ( element.parent().next() ); @@ -52,7 +53,10 @@
+ 管理用户 + +
diff --git a/examples/mini-web/src/main/webapp/WEB-INF/views/login.jsp b/examples/mini-web/src/main/webapp/WEB-INF/views/login.jsp index ac3f4661..370ec085 100644 --- a/examples/mini-web/src/main/webapp/WEB-INF/views/login.jsp +++ b/examples/mini-web/src/main/webapp/WEB-INF/views/login.jsp @@ -37,11 +37,11 @@ 登录
- +
- +
diff --git a/examples/mini-web/src/main/webapp/static/jquery-validation/1.9.0/milk.css b/examples/mini-web/src/main/webapp/static/jquery-validation/1.9.0/validate.css similarity index 100% rename from examples/mini-web/src/main/webapp/static/jquery-validation/1.9.0/milk.css rename to examples/mini-web/src/main/webapp/static/jquery-validation/1.9.0/validate.css diff --git a/examples/showcase/src/main/webapp/WEB-INF/views/common/userForm.jsp b/examples/showcase/src/main/webapp/WEB-INF/views/common/userForm.jsp index 21c45ea2..39871ba7 100644 --- a/examples/showcase/src/main/webapp/WEB-INF/views/common/userForm.jsp +++ b/examples/showcase/src/main/webapp/WEB-INF/views/common/userForm.jsp @@ -8,7 +8,7 @@ 综合演示用例 - + - +