From 987da3fa8122f09b0b437b4a4059097915199d1b Mon Sep 17 00:00:00 2001 From: zhangwenqing Date: Thu, 9 Aug 2018 21:07:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E7=95=8C=E9=9D=A2=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E4=BF=A1=E6=81=AF=E5=AF=BC=E8=87=B4=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E4=B8=8B=E6=B2=89=E9=97=AE=E9=A2=98.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../specific/specificServiceHostCfgForm.jsp | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/src/main/webapp/WEB-INF/views/specific/specificServiceHostCfgForm.jsp b/src/main/webapp/WEB-INF/views/specific/specificServiceHostCfgForm.jsp index 7dfb4251e..89d3c70c1 100644 --- a/src/main/webapp/WEB-INF/views/specific/specificServiceHostCfgForm.jsp +++ b/src/main/webapp/WEB-INF/views/specific/specificServiceHostCfgForm.jsp @@ -53,7 +53,7 @@ function selectP(){ form.submit(); }, errorContainer : "#messageBox", - errorPlacement : function(error, element) { + /* errorPlacement : function(error, element) { $("#messageBox").text(""); if (element.is(":checkbox") || element.is(":radio") @@ -64,6 +64,9 @@ function selectP(){ } else { error.insertAfter(element); } + } */ + errorPlacement: function(error,element){ + $(element).parents(".form-group").find("div[for='"+element.attr("name")+"']").append(error); } }); }); @@ -109,28 +112,30 @@ function selectP(){
- +
+
-
+
- +
- + +
@@ -141,12 +146,13 @@ function selectP(){
- + +
@@ -186,6 +192,7 @@ function selectP(){
+
@@ -213,6 +220,7 @@ function selectP(){
+