diff --git a/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/jquery.validate.method.js b/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/jquery.validate.method.js
index 6c6e81fc2..1289ca53b 100644
--- a/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/jquery.validate.method.js
+++ b/src/main/webapp/static/global/plugins/jquery-validation/1.11.0/jquery.validate.method.js
@@ -170,7 +170,13 @@ jQuery.validator.addMethod("notStartZero",function(value, element) {
jQuery.validator.addMethod("ipCheck",function(value, element) {
if(value.length==0||value.trim().length==0){return true;}
var typeInt=$(element).parents(".row").siblings().find("select[name$='ipType']").val();
+ if(!typeInt){
+ typeInt=$(element).parents(".row").find("select[name$='ipType']").val();
+ }
var ipPattern=$(element).parents(".row").siblings().find("select[name$='ipPattern']").val();
+ if(!ipPattern){
+ ipPattern=$(element).parents(".row").find("select[name$='ipPattern']").val();
+ }
if(typeInt==4){
if(ipPattern){
if(ipPattern==1){//ip/掩码格式
@@ -231,6 +237,9 @@ jQuery.validator.addMethod("ipMask",function(value, element) {
if(value.length==0||value.trim().length==0){return true;}
obj=value;
var typeInt=$(element).parents(".row").siblings().find("select[name$='ipType']").val();
+ if(!typeInt){
+ typeInt=$(element).parents(".row").find("select[name$='ipType']").val();
+ }
if(typeInt==4){
if(obj=="255.255.255.255"){
return true;
@@ -249,6 +258,9 @@ jQuery.validator.addMethod("portCheck",function(value, element) {
if(value.length==0||value.trim().length==0){return true;}
obj=value;
var typeInt=$(element).parents(".row").siblings().find("select[name$='portPattern']").val();
+ if(!typeInt){
+ typeInt=$(element).parents(".row").find("select[name$='portPattern']").val();
+ }
if(typeInt==1){//port 0~65535
return this.optional(element)||(/^([0-9]+)$/.test(value) && (RegExp.$1 <=65535 && RegExp.$1 >=0));
}else if(typeInt==2){// port -mask 0~65535/0~65535