修改配置时,获取当前配置serviceId与protocolId信息
This commit is contained in:
@@ -58,6 +58,7 @@ $(function(){
|
|||||||
$(".action").on("change",function(){
|
$(".action").on("change",function(){
|
||||||
$("#serviceId").val($(this).attr("serviceId"));
|
$("#serviceId").val($(this).attr("serviceId"));
|
||||||
});
|
});
|
||||||
|
$("#serviceId").val($(".action:checked").attr("serviceId"));
|
||||||
$("#cfgFrom").validate({
|
$("#cfgFrom").validate({
|
||||||
submitHandler: function(form){
|
submitHandler: function(form){
|
||||||
var srcFile = $("#srcFile").val();
|
var srcFile = $("#srcFile").val();
|
||||||
|
|||||||
@@ -46,6 +46,7 @@ $(function(){
|
|||||||
$(".action").on("change",function(){
|
$(".action").on("change",function(){
|
||||||
$("#serviceId").val($(this).attr("serviceId"));
|
$("#serviceId").val($(this).attr("serviceId"));
|
||||||
});
|
});
|
||||||
|
$("#serviceId").val($(".action:checked").attr("serviceId"));
|
||||||
$("#cfgFrom").validate({
|
$("#cfgFrom").validate({
|
||||||
errorPlacement: function(error,element){
|
errorPlacement: function(error,element){
|
||||||
$(element).parents(".form-group").find("div[for='"+element.attr("name")+"']").append(error);
|
$(element).parents(".form-group").find("div[for='"+element.attr("name")+"']").append(error);
|
||||||
|
|||||||
@@ -73,8 +73,8 @@
|
|||||||
$("#serviceId").val($(this).attr("serviceId"));
|
$("#serviceId").val($(this).attr("serviceId"));
|
||||||
$("#protocolId").val($(this).attr("protocolId"));
|
$("#protocolId").val($(this).attr("protocolId"));
|
||||||
});
|
});
|
||||||
$("#serviceId").val($(".action").attr("serviceId"));
|
$("#serviceId").val($(".action:checked").attr("serviceId"));
|
||||||
$("#protocolId").val($(".action").attr("protocolId"));
|
$("#protocolId").val($(".action:checked").attr("protocolId"));
|
||||||
$(".httpResCfg").addClass("hidden").addClass("disabled");
|
$(".httpResCfg").addClass("hidden").addClass("disabled");
|
||||||
$(".httpReqCfg").removeClass("hidden").removeClass(
|
$(".httpReqCfg").removeClass("hidden").removeClass(
|
||||||
"disabled");
|
"disabled");
|
||||||
|
|||||||
Reference in New Issue
Block a user