From 9968c15e033d1af20fceefe20c66dadd905e77eb Mon Sep 17 00:00:00 2001 From: Calvin Date: Fri, 16 Mar 2012 20:21:13 +0800 Subject: [PATCH] =?UTF-8?q?#13=20=E4=BF=AE=E6=AD=A3Jquery=20Validate=20Plu?= =?UTF-8?q?gin=E7=9A=84=E4=BD=BF=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/webapp/WEB-INF/layouts/default.jsp | 3 +-- .../webapp/WEB-INF/views/account/userForm.jsp | 6 ++++++ .../jquery-validation/1.9.0/images/checked.gif | Bin 220 -> 0 bytes .../static/jquery-validation/1.9.0/milk.css | 4 ---- .../main/webapp/WEB-INF/views/common/userForm.jsp | 13 +++++++++++-- .../main/webapp/WEB-INF/views/security/login.jsp | 6 +++++- .../jquery-validation/1.9.0/images/checked.gif | Bin 220 -> 0 bytes .../static/jquery-validation/1.9.0/milk.css | 4 ---- 8 files changed, 23 insertions(+), 13 deletions(-) delete mode 100644 examples/mini-web/src/main/webapp/static/jquery-validation/1.9.0/images/checked.gif delete mode 100644 examples/showcase/src/main/webapp/static/jquery-validation/1.9.0/images/checked.gif 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 3e1a447b..9b306c09 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 @@ -12,16 +12,15 @@ - - + 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 644e51f1..2f4fc485 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 @@ -36,6 +36,12 @@ passwordConfirm: { equalTo: "输入与上面相同的密码" } + }, + errorPlacement: function(error, element) { + if ( element.is(":checkbox") ) + error.appendTo ( element.parent().next() ); + else + error.insertAfter( element ); } }); }); diff --git a/examples/mini-web/src/main/webapp/static/jquery-validation/1.9.0/images/checked.gif b/examples/mini-web/src/main/webapp/static/jquery-validation/1.9.0/images/checked.gif deleted file mode 100644 index 5e33a78dc0853ea4b6c62616f5626e230aa9ea30..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 220 zcmZ?wbhEHb;^p%XKP!|RpMUsy{rdawzy21;I=uSyD}%bz|NsBD zZ$E$k_4odrkN01HpD^co!-o6o&%So*Irsd-PoON&0Q^AlCkv|xg9w8TNEygZ2G&Rg zRVh~{2G7I}ox(W=1q!(`>c?Cp*Y`>_H8MV8=HO*!I8sujlfvZs;0TL|$ceT^fh-mx sf~ 综合演示用例 + + + + + @@ -16,11 +25,11 @@ 管理用户
- +
- +
diff --git a/examples/showcase/src/main/webapp/WEB-INF/views/security/login.jsp b/examples/showcase/src/main/webapp/WEB-INF/views/security/login.jsp index 8d8bf373..6777ac88 100644 --- a/examples/showcase/src/main/webapp/WEB-INF/views/security/login.jsp +++ b/examples/showcase/src/main/webapp/WEB-INF/views/security/login.jsp @@ -8,6 +8,10 @@ Showcase 登录页面 + + + +