From 6bbdf414531daac155b82cc3e0ae143072c2d939 Mon Sep 17 00:00:00 2001 From: Miguel Reboiro-Jato Date: Mon, 18 Feb 2019 12:19:01 +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 eae5884..802d6b2 100644 --- a/src/main/webapp/js/view/people.js +++ b/src/main/webapp/js/view/people.js @@ -21,6 +21,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