From fc8d240635ac5e044c84002302528901e2d80b2f Mon Sep 17 00:00:00 2001 From: miferreiro Date: Mon, 18 Feb 2019 18:53:28 +0100 Subject: [PATCH] Adds an error message when people list is not accessible When the frontend tries to recover people list and the request fails a message is shown to notify the user. --- pom.xml | 2 +- src/main/webapp/js/view/people.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 8120da2..49e84c2 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ es.uvigo.esei.daa example war - 0.1.11 + 0.1.12 DAA Example diff --git a/src/main/webapp/js/view/people.js b/src/main/webapp/js/view/people.js index 4667370..f577907 100644 --- a/src/main/webapp/js/view/people.js +++ b/src/main/webapp/js/view/people.js @@ -22,6 +22,9 @@ var PeopleView = (function() { $.each(people, function(key, person) { appendToTable(person); }); + }, + function() { + alert('No has sido posible acceder al listado de personas.'); }); // La acción por defecto de enviar formulario (submit) se sobreescribe -- 2.18.1