remotes/1693045480750635534/spooky-22
Aevann1 2021-09-26 11:11:54 +02:00
parent 83f04bfacb
commit 9c9c745dfb
2 changed files with 2 additions and 29 deletions

View File

@ -141,7 +141,7 @@
// Delete Comment
function delete_commentModal(id,button1,button2) {
function delete_commentModal(id) {
// Passed data for modal
@ -157,29 +157,6 @@
)
}
document.getElementById(button1).classList.toggle("d-md-inline-block");
document.getElementById(button2).classList.toggle("d-md-inline-block");
};
function delete_commentModal2(id,button1,button2) {
// Passed data for modal
document.getElementById("deleteCommentButton").onclick = function() {
this.innerHTML='<span class="spinner-border spinner-border-sm mr-2" role="status" aria-hidden="true"></span>Deleting comment';
this.disabled = true;
post('/delete/comment/' + id,
callback = function() {
location.reload();
}
)
}
document.getElementById(button1).classList.toggle("d-none");
document.getElementById(button2).classList.toggle("d-none");
};

View File

@ -1,5 +1,5 @@
<script>
function delete_postModal(id,button1,button2) {
function delete_postModal(id) {
// Passed data for modal
@ -18,10 +18,6 @@
}
)
}
document.getElementById(button1).classList.toggle("d-none");
document.getElementById(button2).classList.toggle("d-none");
};
</script>