diff --git a/src/main/webapp/WEB-INF/views/cfg/intercept/strateagy/trustedCertForm.jsp b/src/main/webapp/WEB-INF/views/cfg/intercept/strateagy/trustedCertForm.jsp index ab7d7bd0a..13f020b91 100644 --- a/src/main/webapp/WEB-INF/views/cfg/intercept/strateagy/trustedCertForm.jsp +++ b/src/main/webapp/WEB-INF/views/cfg/intercept/strateagy/trustedCertForm.jsp @@ -10,7 +10,7 @@ $(function(){ }); $("#certFileI").on('change', function() { $("#certFileInfo").val($("#certFileI").val()); - /* certFileValidate(); */ + certFileValidate(); }); $("#cfgFrom").validate({ @@ -22,14 +22,14 @@ $(function(){ } }, submitHandler: function(form){ - var certFile = $("#certFileI").val(); + var certFile = $("#certFileInfo").val(); - /* if(certFile!=''){ + if(certFile!=''){ if(!certFileValidate()){ return false; } - } */ + } certFile=$("#certFileInfo").val(); if((certFile==null || certFile=="")){ $("div[for='certFileI']").append(""); @@ -47,7 +47,7 @@ $(function(){ function certFileValidate(){ var flag=false; //状态,检测文件后缀用 var arr=["pem"]; - var cFile=$("#certFileI").val();//文件的值 + var cFile=$("#certFileInfo").val();//文件的值 //取出上传文件的扩展名 var index=cFile.lastIndexOf("."); var ext = cFile.substr(index+1).toLowerCase();