Add collection and new vocab + mess with repository
This commit is contained in:
@@ -87,7 +87,7 @@
|
||||
terms.addEventListener('click', async (event) => {
|
||||
const clicked = event.target;
|
||||
|
||||
if (clicked.classList.contains('is-danger')) {
|
||||
if (clicked.getAttribute('data-id-delete')) {
|
||||
const termId = clicked.getAttribute('data-id-delete');
|
||||
|
||||
const data = new FormData;
|
||||
@@ -103,7 +103,7 @@
|
||||
if (res.status === 200) {
|
||||
notice.innerHTML = `
|
||||
<button class="delete"></button>
|
||||
Term updated successfully
|
||||
Term deleted successfully
|
||||
`;
|
||||
notice.classList.remove('is-hidden');
|
||||
notice.querySelector('.delete').addEventListener('click', () => {
|
||||
|
||||
Reference in New Issue
Block a user