(1)配置修改时已经展开的域上的加号隐藏

(2)IP域修改时默认展开,不显示show more
This commit is contained in:
wangxin
2018-09-27 16:30:22 +08:00
parent 39bfeb47bc
commit 80accfdfa9

View File

@@ -536,6 +536,17 @@ $(function(){
$(this).val(0);
}
});
//配置修改时已经展开的域上的加号隐藏
$(".boxSolid:visible").each(function(){
$(this).prev("h4").find(".glyphicon-plus").addClass("hidden");
});
//IP域修改时默认展开,不显示show more
if($("input[name='compileId']")&&$("input[name='compileId']").val()!=0&&($(".btn-red-hollow").parents(".boxSolid").is(":visible")||$("input[name$='cfgRegionCode']").length==1)){
$(".port").removeClass("hidden").removeClass("disabled");
$(".destPort").removeClass("hidden").removeClass("disabled");
$(".protocol").removeClass("hidden").removeClass("disabled");
$(".btn-red-hollow").addClass("hidden");
}
});
window.onload=function(){
$("span[id^=open]").click(function(){