diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 152f203..484c917 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -3,7 +3,6 @@ - - + @@ -22,11 +21,11 @@ - + - - + + @@ -76,8 +75,8 @@ @@ -166,17 +165,38 @@ - + - + + + + + + + + + + + + + + + + + + + + + @@ -196,7 +216,7 @@ - + \ No newline at end of file diff --git a/js/main.js b/js/main.js index a07cd39..b177063 100644 --- a/js/main.js +++ b/js/main.js @@ -15,12 +15,12 @@ jQuery(document).on('submit','#formlg',function(event){ if (!respuesta.error){ console.log("despues de error"); - if (respuesta.tipo == 'Jefatura') + if (respuesta.perfil == 'Jefatura') { //location.href = '132.248.80.188/Inventario/sitio/admin/admin.php'; console.log("jefatura"); } - else if (respuesta.tipo == 'Area') + else if (respuesta.perfil == 'Area') { location.href = '132.248.80.188/Inventario/sitio/usuario/usuario.php'; }