switchIpInfo初始化提至common.js

去掉所有list界面的分类、标签、性质的末尾逗号
This commit is contained in:
duandongmei
2018-05-25 18:25:42 +08:00
parent bbd0aeeee8
commit cd1cb600b9
9 changed files with 83 additions and 49 deletions

View File

@@ -7,6 +7,19 @@ $(function(){
$("input.i-checks").prop("checked",false);
}
});
$("select[name$='ipType']").each(function(){
switchIpInfo(this);
})
$("select[name$='ipType']").on("change",function(){
switchIpInfo(this);
});
$("select[name$='ipPattern']").on("change",function(){
switchIpInfo(this);
});
$("select[name$='portPattern']").on("change",function(){
switchIpInfo(this);
});
});
var switchIpType=function(obj){
var type=$(obj).val();