From a763874ada329bb232b6f477ddf638e23dad004a Mon Sep 17 00:00:00 2001 From: zhangwei Date: Mon, 28 May 2018 14:02:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=85=8D=E7=BD=AE=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E8=8E=B7=E5=8F=96=E5=BD=93=E5=89=8D=E9=85=8D=E7=BD=AE?= =?UTF-8?q?serviceId=E4=B8=8EprotocolId=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/WEB-INF/views/cfg/av/fileSampleForm.jsp | 1 + src/main/webapp/WEB-INF/views/cfg/av/signSampleForm.jsp | 1 + src/main/webapp/WEB-INF/views/cfg/website/httpForm.jsp | 4 ++-- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/WEB-INF/views/cfg/av/fileSampleForm.jsp b/src/main/webapp/WEB-INF/views/cfg/av/fileSampleForm.jsp index 768ddad08..6008c45ea 100644 --- a/src/main/webapp/WEB-INF/views/cfg/av/fileSampleForm.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/av/fileSampleForm.jsp @@ -58,6 +58,7 @@ $(function(){ $(".action").on("change",function(){ $("#serviceId").val($(this).attr("serviceId")); }); + $("#serviceId").val($(".action:checked").attr("serviceId")); $("#cfgFrom").validate({ submitHandler: function(form){ var srcFile = $("#srcFile").val(); diff --git a/src/main/webapp/WEB-INF/views/cfg/av/signSampleForm.jsp b/src/main/webapp/WEB-INF/views/cfg/av/signSampleForm.jsp index 027d28d9f..f31e441a0 100644 --- a/src/main/webapp/WEB-INF/views/cfg/av/signSampleForm.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/av/signSampleForm.jsp @@ -46,6 +46,7 @@ $(function(){ $(".action").on("change",function(){ $("#serviceId").val($(this).attr("serviceId")); }); + $("#serviceId").val($(".action:checked").attr("serviceId")); $("#cfgFrom").validate({ errorPlacement: function(error,element){ $(element).parents(".form-group").find("div[for='"+element.attr("name")+"']").append(error); diff --git a/src/main/webapp/WEB-INF/views/cfg/website/httpForm.jsp b/src/main/webapp/WEB-INF/views/cfg/website/httpForm.jsp index 51933d48f..160dba5df 100644 --- a/src/main/webapp/WEB-INF/views/cfg/website/httpForm.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/website/httpForm.jsp @@ -73,8 +73,8 @@ $("#serviceId").val($(this).attr("serviceId")); $("#protocolId").val($(this).attr("protocolId")); }); - $("#serviceId").val($(".action").attr("serviceId")); - $("#protocolId").val($(".action").attr("protocolId")); + $("#serviceId").val($(".action:checked").attr("serviceId")); + $("#protocolId").val($(".action:checked").attr("protocolId")); $(".httpResCfg").addClass("hidden").addClass("disabled"); $(".httpReqCfg").removeClass("hidden").removeClass( "disabled");