diff --git a/x21aConfig/x21a.properties b/x21aConfig/x21a.properties index 349a63ab1..31c3469ca 100644 --- a/x21aConfig/x21a.properties +++ b/x21aConfig/x21a.properties @@ -4,6 +4,9 @@ xlnets.path=http://xlnets.servicios.jakina.ejiedes.net/n38a/N38LoginInicioServle rss.path=http://desarrollo.jakina.ejiedes.net:7001/x21aMantenimientosWar/jqGridUsuario/rssDetail/ +xhr.redirectOnError=true +xhr.unauthorizedPage=referer + #The System logs parameters log.path=c:/datos/x21a/log log.level.salidaEstandar=INFO diff --git a/x21aEAR/build.xml b/x21aEAR/build.xml index 1a4d29014..3d97db8c8 100644 --- a/x21aEAR/build.xml +++ b/x21aEAR/build.xml @@ -1,19 +1,23 @@ - + + + + - + - - - - - - - + + + + + + + + diff --git a/x21aEAR/pom.xml b/x21aEAR/pom.xml index f19c61988..223f9cd5f 100644 --- a/x21aEAR/pom.xml +++ b/x21aEAR/pom.xml @@ -4,7 +4,7 @@ com.ejie.x21a x21aEAR pom - 1.0-SNAPSHOT + 3.8.0-RELEASE x21aEAR http://maven.apache.org @@ -12,7 +12,7 @@ 3.2.9.RELEASE 1.1.7 1.7.21 - 3.7.1-RELEASE + 3.9.0-RELEASE @@ -111,7 +111,7 @@ - org + com.googlecode.usc jdbcdslog 1.0.5 @@ -612,27 +612,6 @@ - - - - ejie - ejie - http://www.otc.ejiedes.net/archiva/repository/repoCACRep - - true - always - - - diff --git a/x21aStatics/WebContent/3x/x21a/scripts/x21aApp/_layoutLoader.js b/x21aStatics/WebContent/3x/x21a/scripts/x21aApp/_layoutLoader.js index 307e11dad..f8d4379ad 100644 --- a/x21aStatics/WebContent/3x/x21a/scripts/x21aApp/_layoutLoader.js +++ b/x21aStatics/WebContent/3x/x21a/scripts/x21aApp/_layoutLoader.js @@ -254,4 +254,10 @@ jQuery(document).ready(function(){ jQuery("header").remove(); jQuery("footer").remove(); } + + $(document).ajaxError(function(event, jqXHR, ajaxSettings, thrownError) { + if (jqXHR.status === 401 || jqXHR.status === 403) { + window.location.href = jqXHR.getResponseHeader("LOCATION"); + } + }); }); \ No newline at end of file