修复多域修改时IP配置如果不为空默认不显示的bug

This commit is contained in:
wangxin
2018-04-09 10:24:55 +08:00
parent 7c94f86c20
commit 689b4eb460
2 changed files with 12 additions and 8 deletions

View File

@@ -6,6 +6,13 @@
<script type="text/javascript">
$(function(){
$("[name^='ipCfg']").attr("disabled",true);
if($("#ipSelect").is(":checked")){
$("[name^='ipCfg']").removeProp("disabled");
//解决select插件disbale后无法恢复
$(".bootstrap-select").removeClass("disabled");
$(".bootstrap-select button").removeClass("disabled");
$(".collapse").addClass("in");
}
//$("[name^='stringCfg']").attr("disabled",true);
//$("[name^='complexCfg']").attr("disabled",true);
//$("[name^='numCfg']").attr("disabled",true);