diff --git a/src/main/resources/static/js/card/card-list-delete.js b/src/main/resources/static/js/card/card-list-delete.js index a7db719..73a7f46 100644 --- a/src/main/resources/static/js/card/card-list-delete.js +++ b/src/main/resources/static/js/card/card-list-delete.js @@ -1,4 +1,6 @@ -function deleteCardFromGroup(button) { +function deleteCardFromGroup(button, event) { + event.stopPropagation(); + const cardId = button.getAttribute('card-id'); const groupId = getCurrentGroupId(); diff --git a/src/main/resources/static/js/card/card.js b/src/main/resources/static/js/card/card.js index 24eb88a..6f9ab3d 100644 --- a/src/main/resources/static/js/card/card.js +++ b/src/main/resources/static/js/card/card.js @@ -9,6 +9,7 @@ function populateCardSection(data, container) { cardElement.id = `card-${data.id}`; cardElement.innerHTML = ` +