");
- if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
- error.appendTo(element.parent().parent());
- } else {
- error.insertAfter(element);
- }
+ $(element).parents(".form-group").find("div[for='"+element.attr("name")+"']").append(error);
}
});
//if("${specificServiceCfg.parentType}"){
@@ -87,10 +82,6 @@
$(this).find("[name='parent.specServiceId']").removeAttr("name");
$(this).find("[name='parent.specServiceName']").removeAttr("name");
}
- if($(this).attr("cfgType")==3){
- $(this).find("input").unbind("click");
- $(this).find("a").unbind("click");
- }
});
$(".protocol_code").html('
*:');
$(".protocol_name").html('
*:');
@@ -102,9 +93,6 @@
$(this).find("[name='parent.specServiceId']").removeAttr("name");
$(this).find("[name='parent.specServiceName']").removeAttr("name");
}
- if($(this).attr("cfgType")==3){
- $(this).find("input").unbind("click");
- }
});
if($("[name='cfgType']").val()==1){
$(".protocol_code").html('
*:');
@@ -127,8 +115,9 @@
if($(this).attr("cfgType")==cfgType){
$(this).removeClass("hidden");
$("#specificServiceCfg"+cfgType+"Id").attr("name","parent.specServiceId");
+ $("#specificServiceCfg"+cfgType+"Name").attr("name","parent.specServiceName");
}else{
- $(this).addClass("hidden").addClass("disable");
+ $(this).addClass("hidden");
$(this).find("[name='parent.specServiceId']").removeAttr("name");
$(this).find("[name='parent.specServiceName']").removeAttr("name");
}
@@ -199,13 +188,14 @@
+ url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=${dict.itemCode}" extId="${specificServiceCfg.specServiceId}" cssClass="required form-control"/>
+ title="${dict.itemValue}" url="/specific/specificServiceCfg/treeData?isLeafShow=false&cfgType=${dict.itemCode}" extId="${specificServiceCfg.specServiceId}" cssClass="required form-control"/>
+