可新证书页面去除文件格式校验

This commit is contained in:
wangwei
2019-06-25 09:36:29 +08:00
parent c9f99cb592
commit d12973f2bf

View File

@@ -10,7 +10,7 @@ $(function(){
});
$("#certFileI").on('change', function() {
$("#certFileInfo").val($("#certFileI").val());
certFileValidate();
/* certFileValidate(); */
});
$("#cfgFrom").validate({
@@ -24,12 +24,12 @@ $(function(){
submitHandler: function(form){
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>");
@@ -196,7 +196,6 @@ function certFileValidate(){
<input id="certFile" name="certFile" type="hidden" value="${_cfg.certFile }"/>
</div>
</div>
&nbsp;&nbsp;<label ><i class='fa fa-info-circle'></i>&nbsp;<spring:message code='pem'/></label>
<div id="certInfo"></div>
<div for="certFileInfo"></div>
</div>