diff --git a/archetype/html-rest/src/main/resources/archetype-resources/src/main/webapp/bookmark-edit.html b/archetype/html-rest/src/main/resources/archetype-resources/src/main/webapp/bookmark-edit.html index 0de9654..a7b7197 100644 --- a/archetype/html-rest/src/main/resources/archetype-resources/src/main/webapp/bookmark-edit.html +++ b/archetype/html-rest/src/main/resources/archetype-resources/src/main/webapp/bookmark-edit.html @@ -47,6 +47,7 @@ + diff --git a/archetype/html-rest/src/main/resources/archetype-resources/src/main/webapp/css/bookmark.css b/archetype/html-rest/src/main/resources/archetype-resources/src/main/webapp/css/bookmark.css index 184c4a3..99594dc 100644 --- a/archetype/html-rest/src/main/resources/archetype-resources/src/main/webapp/css/bookmark.css +++ b/archetype/html-rest/src/main/resources/archetype-resources/src/main/webapp/css/bookmark.css @@ -7,4 +7,12 @@ body { input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; +} + +#username { + color: #777; + display: block; + line-height: 20px; + padding: 15px 15px; + position: relative; } \ No newline at end of file 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 6f60d61..3836097 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 @@ -39,9 +39,11 @@ $(function() { }); $("#delete").click(function() { - if (confirm('Tem certeza que deseja apagar?')) { - BookmarkProxy.remove([$("#id").val()], removeOk); - } + bootbox.confirm("Tem certeza que deseja apagar?", function(result) { + if(result) { + BookmarkProxy.remove([$("#id").val()], removeOk, removeFailed); + } + }); }); $("#back").click(function() { @@ -108,4 +110,15 @@ function saveFailed(request) { function removeOk(data) { location.href = 'bookmark-list.html'; +} + +function removeFailed(request) { + switch (request.status) { + case 401: + alert('Você não está autenticado.'); + break; + + default: + break; + } } \ No newline at end of file diff --git a/archetype/html-rest/src/main/resources/archetype-resources/src/main/webapp/menu.html b/archetype/html-rest/src/main/resources/archetype-resources/src/main/webapp/menu.html index 5cae00f..aacf623 100644 --- a/archetype/html-rest/src/main/resources/archetype-resources/src/main/webapp/menu.html +++ b/archetype/html-rest/src/main/resources/archetype-resources/src/main/webapp/menu.html @@ -24,7 +24,7 @@
-- libgit2 0.21.2