From 6782c4d85b09ae7caaed6e73015a90da2dd659c2 Mon Sep 17 00:00:00 2001 From: wangxin Date: Thu, 21 Jun 2018 11:10:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E9=87=8D=E5=A4=8D=E7=9A=84?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E9=A1=B5=E9=9D=A2=E5=85=83=E7=B4=A0=E6=AD=A5?= =?UTF-8?q?=E9=AA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jquery-validation/1.11.0/jquery.validate.method.js | 9 --------- 1 file changed, 9 deletions(-) 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 d0938a602..b8be3c0ef 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,13 +170,7 @@ 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").parent(".row").find("select[name$='ipType']").val(); - if(!typeInt){ - typeInt=$(element).parents(".row").parent(".row").find("select[name$='ipType']").val(); - } var ipPattern=$(element).parents(".row").parent(".row").find("select[name$='ipPattern']").val(); - if(!ipPattern){ - ipPattern=$(element).parents(".row").parent(".row").find("select[name$='ipPattern']").val(); - } if(typeInt==4){ if(ipPattern){ if(ipPattern==1){//ip/掩码格式 @@ -292,9 +286,6 @@ jQuery.validator.addMethod("ipMask",function(value, element) { jQuery.validator.addMethod("portCheck",function(value, element) { if(value.length==0||value.trim().length==0){return true;} var typeInt=$(element).parents(".row").parent(".row").find("select[name$='portPattern']").val(); - if(!typeInt){ - typeInt=$(element).parents(".row").parent(".row").find("select[name$='portPattern']").val(); - } if(typeInt==1){//port 0~65535 if(this.optional(element)||(/^(0|[1-9][0-9]{0,4})$/.test(value)&& RegExp.$1 <=65535)){ return true;