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 5e33a78d..00000000 Binary files a/examples/mini-web/src/main/webapp/static/jquery-validation/1.9.0/images/checked.gif and /dev/null differ 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/milk.css index 82b98f1b..d8a5d28e 100644 --- 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/milk.css @@ -4,8 +4,4 @@ label.error { padding-bottom: 2px; font-weight: bold; color: #EA5200; -} - -label.checked { - background:url("images/checked.gif") no-repeat 0px 0px; } \ No newline at end of file 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 77a3daf6..21c45ea2 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 @@ -6,6 +6,15 @@ 综合演示用例 + + + + + @@ -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 登录页面 + + + +