diff --git a/src/main/webapp/static/global/scripts/common.js b/src/main/webapp/static/global/scripts/common.js index be9524979..bf938f8c4 100644 --- a/src/main/webapp/static/global/scripts/common.js +++ b/src/main/webapp/static/global/scripts/common.js @@ -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(){