Commit a55d4e5463bd8f436378b14bea1357bd96aba3b8
1 parent
fb9e1f28
Exists in
master
Tratamento do acesso a um registro apagado por outra chamada.
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
archetype/html-rest/src/main/resources/archetype-resources/src/main/webapp/js/controller/bookmark-edit.js
| ... | ... | @@ -48,7 +48,8 @@ function loadOk(data) { |
| 48 | 48 | function loadFailed(request) { |
| 49 | 49 | switch (request.status) { |
| 50 | 50 | case 404: |
| 51 | - console.log(request); | |
| 51 | + alert('Você está tentando acessar um registro inexistente.\r\nVocê será redirecionado.') | |
| 52 | + location.href = "bookmark-list.html"; | |
| 52 | 53 | break; |
| 53 | 54 | |
| 54 | 55 | default: | ... | ... |