Commit 5ea1fa98 by Billy Larru

mostrando mensaje de rol registrado en crear rol

parent d0222fb9
......@@ -246,12 +246,17 @@ function registrarRolPolicia() {
};
ajaxWebService.post(URI_ROL_POLICIA, params)
.then((result) => {
result.data = formatResponse(result);
.then((response) => {
debugger;
if (result.data.status) {
if (response.status) {
swal({
type: 'success',
title: '¡Rol registrado exitosamente!',
showConfirmButton: false,
timer: 1500
})
listarRolesPolicias();
console.log(result.data);
console.log(response.data);
} else {
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment