修改areaInfo.jsp加入验证:action为drop和loop的时候提示用户无需区域管控
This commit is contained in:
@@ -323,6 +323,15 @@ jQuery.validator.addMethod("chooseAreaOrIsp",function(value, element) {
|
||||
return true;
|
||||
|
||||
});
|
||||
jQuery.validator.addMethod("areaControl",function(value, element) {
|
||||
var action=$(element).closest(".row").siblings(".row").find("input[name$=action]:radio:checked").val();
|
||||
if((action==0x20||action==0x60)&&value==1){
|
||||
$.validator.messages.areaControl=$.validator.messages.areaControl
|
||||
return false;
|
||||
}else{
|
||||
return true;
|
||||
}
|
||||
});
|
||||
//ip v4转数字
|
||||
var ipToNumber=function (ip){
|
||||
var num =0;
|
||||
|
||||
Reference in New Issue
Block a user