Subir certificados ok
This commit is contained in:
parent
f8c7385607
commit
6269079af3
|
@ -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()
|
||||
//~ }
|
||||
//~ }
|
||||
//~ })
|
||||
//~ }
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue