From a55d4e5463bd8f436378b14bea1357bd96aba3b8 Mon Sep 17 00:00:00 2001 From: lusabo Date: Tue, 3 Jun 2014 16:35:46 -0300 Subject: [PATCH] Tratamento do acesso a um registro apagado por outra chamada. --- archetype/html-rest/src/main/resources/archetype-resources/src/main/webapp/js/controller/bookmark-edit.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/archetype/html-rest/src/main/resources/archetype-resources/src/main/webapp/js/controller/bookmark-edit.js b/archetype/html-rest/src/main/resources/archetype-resources/src/main/webapp/js/controller/bookmark-edit.js index bc4706e..578aad2 100644 --- a/archetype/html-rest/src/main/resources/archetype-resources/src/main/webapp/js/controller/bookmark-edit.js +++ b/archetype/html-rest/src/main/resources/archetype-resources/src/main/webapp/js/controller/bookmark-edit.js @@ -48,7 +48,8 @@ function loadOk(data) { function loadFailed(request) { switch (request.status) { case 404: - console.log(request); + alert('Você está tentando acessar um registro inexistente.\r\nVocê será redirecionado.') + location.href = "bookmark-list.html"; break; default: -- libgit2 0.21.2