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");