summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwangwei <[email protected]>2019-06-24 19:37:56 +0800
committerwangwei <[email protected]>2019-06-24 19:37:56 +0800
commitd2787f60809fc7bb58d31a0531ebd6c898b8a87b (patch)
treea71e868cb9692c6a292c1be8f218cb6f4e9b1ab3
parente9a06cabaf521f8f9b6549dd9c8423598ff85e1a (diff)
打开可信证书文件检验
-rw-r--r--src/main/webapp/WEB-INF/views/cfg/intercept/strateagy/trustedCertForm.jsp10
1 files changed, 5 insertions, 5 deletions
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("<label id='level-error' class='error' for='certFileI'><spring:message code='required'></spring:message></label>");
@@ -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();