Implement edit-player. Optimizations.

This commit is contained in:
MaxJa4 committed 2024-01-16 20:54:49 +01:00
1 parent fc084108ac
commit 94e0c178f0
14 files changed
+100 -35

No files matched your search

+2 -5
View File
@@ -33,10 +33,7 @@
modalBodyInput.innerText = selectedClan;
const submitButton = deleteClanModal.querySelector('button[name="submit"]');
submitButton.addEventListener('click', function (e) {
e.preventDefault();
submitButton.onclick = function () {}
submitButton.addEventListener('click', function () {
const clanId = parseInt(clanList.value);
fetch("/clan/" + clanId, {
@@ -69,7 +66,7 @@
.catch((error) => {
throw new Error(error)
});
})
}, { once: true });
});
}
});