Subir certificados ok

This commit is contained in:
Mauricio Baeza 2017-10-12 16:49:43 -05:00
parent f8c7385607
commit 6269079af3
1 changed files with 15 additions and 20 deletions

View File

@ -309,28 +309,23 @@ function cmd_subir_certificado_click(){
var rfc = $$('form_cert').getValues()['cert_rfc']
try{
if(rfc){
msg = 'Ya existe un certificado guardado<BR><BR>¿Deseas reemplazarlo?'
webix.confirm({
title: 'Certificado Existente',
ok: 'Si',
cancel: 'No',
type: 'confirm-error',
text: msg,
callback:function(result){
if(result){
$$('up_cert').send()
}
}
})
}else{
$$('up_cert').send()
}catch(err){
msg_error(err.message)
}
//~ if(rfc){
//~ msg = 'Ya existe un certificado guardado<BR><BR>¿Deseas reemplazarlo?'
//~ webix.confirm({
//~ title: 'Certificado Existente',
//~ ok: 'Si',
//~ cancel: 'No',
//~ type: 'confirm-error',
//~ text: msg,
//~ callback:function(result){
//~ if(result){
//~ $$('up_cert').send()
//~ }
//~ }
//~ })
//~ }
}