From 2b9622da21469e3057231c2f55eca7365c67ba2e Mon Sep 17 00:00:00 2001 From: miferreiro Date: Tue, 26 Feb 2019 20:46:59 +0100 Subject: [PATCH] Adds an error message when person delete is not posible When the frontend tries to delte a person and the request fails a message is shown to notify the user. --- src/main/webapp/js/view/people.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/webapp/js/view/people.js b/src/main/webapp/js/view/people.js index c8b841f..7fd0631 100644 --- a/src/main/webapp/js/view/people.js +++ b/src/main/webapp/js/view/people.js @@ -103,7 +103,9 @@ var PeopleView = (function() { $('tr#person-' + id).remove(); self.resetForm(); }, - showErrorMessage + function() { + alert('No ha sido posible eliminar a la persona seleccionada.'); + } ); } }; -- 2.18.1