增加DNS阻断无策略检验.
This commit is contained in:
@@ -1010,5 +1010,24 @@ jQuery.validator.addMethod("ipMaskSole",function(value,element) {
|
||||
});
|
||||
}
|
||||
|
||||
return flag;
|
||||
});
|
||||
|
||||
// DNS阻断无策略校验
|
||||
jQuery.validator.addMethod("noStrategyCheck",function(value,element) {
|
||||
var flag = true;
|
||||
if(value == 0){
|
||||
var ctx = $(element).attr("ctx");
|
||||
var url = ctx+"/cfg/dnsIp/dnsNoStrategyCheck";
|
||||
$.ajax({
|
||||
type:'post',
|
||||
async:false,
|
||||
url: url,
|
||||
data:{"dnsStrategyId":0},
|
||||
success:function(data){
|
||||
flag = data;
|
||||
}
|
||||
});
|
||||
}
|
||||
return flag;
|
||||
});
|
||||
Reference in New Issue
Block a user