diff --git a/src/main/webapp/WEB-INF/views/cfg/dnsIpCfgForm.jsp b/src/main/webapp/WEB-INF/views/cfg/dnsIpCfgForm.jsp index e3a9c4643..6e4a24442 100644 --- a/src/main/webapp/WEB-INF/views/cfg/dnsIpCfgForm.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/dnsIpCfgForm.jsp @@ -171,19 +171,6 @@ $(function(){ }, errorContainer: "#messageBox", }); - - $.validator.addMethod( - "checkIp", - function(value, element, params) { - var checkIp; - if ($("[name=ipType]").val() == 4) { - checkIp = /((25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))\.){3}(25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))/; - } else { - checkIp = /\S+/; - } - return this.optional(element) || (checkIp.test(value) && (RegExp.$1 < 256 && RegExp.$2 < 256 && RegExp.$3 < 256 && RegExp.$4 < 256)); - } - ); }); diff --git a/src/main/webapp/WEB-INF/views/cfg/multipleCfgForm.jsp b/src/main/webapp/WEB-INF/views/cfg/multipleCfgForm.jsp index 525838eba..0687d4814 100644 --- a/src/main/webapp/WEB-INF/views/cfg/multipleCfgForm.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/multipleCfgForm.jsp @@ -40,19 +40,6 @@ $(function(){ errorContainer: "#messageBox" }); - $.validator.addMethod( - "checkIp", - function(value, element, params) { - var checkIp; - if ($("[name$=ipType]").val() == 4) { - checkIp = /((25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))\.){3}(25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))/; - } else { - checkIp = /\S+/; - } - return this.optional(element) || (checkIp.test(value) && (RegExp.$1 < 256 && RegExp.$2 < 256 && RegExp.$3 < 256 && RegExp.$4 < 256)); - } - ); - $("#ipSelect").change(function(){ if($(this).prop("checked")){ $("[name^='ipCfg']").removeProp("disabled"); @@ -116,8 +103,6 @@ $(function(){ }); $(".ipType").on("change",function(){ - var mainTableType="${mainTableType}"; - var otherTables='${_cfg.otherTables}'; var tableName=$(this).attr("name").replace(".ipType",""); var type=$(this).val(); if(4==type){