diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 9955278..205abb0 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,7 +2,6 @@ - @@ -74,8 +74,8 @@ @@ -165,12 +165,12 @@ - + - @@ -273,15 +273,15 @@ - - + + - - + + diff --git a/js/main.js b/js/main.js index da56189..60fed20 100644 --- a/js/main.js +++ b/js/main.js @@ -14,14 +14,14 @@ jQuery(document).on('submit','#formlg',function(event){ .done(function (respuesta) { console.log(respuesta); - + print("hola mundo =)"); if (!respuesta.error){ - if (respuesta.perfil == 'Jefatura') + if (respuesta.tipo == 'Jefatura') { //location.href = '132.248.80.188/Inventario/sitio/admin/admin.php'; - print("hola mundo =)"); + } - else if (respuesta.perfil == 'Area') + else if (respuesta.tipo == 'Area') { location.href = '132.248.80.188/Inventario/sitio/usuario/usuario.php'; }