可新证书页面去除文件格式校验
This commit is contained in:
@@ -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>
|
||||
<label ><i class='fa fa-info-circle'></i> <spring:message code='pem'/></label>
|
||||
<div id="certInfo"></div>
|
||||
<div for="certFileInfo"></div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user