diff --git a/files/templates/comments.html b/files/templates/comments.html index ab3d1c8b2..b474be569 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -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='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"); }; diff --git a/files/templates/delete_post_modal.html b/files/templates/delete_post_modal.html index c2ab6e0f7..547151120 100644 --- a/files/templates/delete_post_modal.html +++ b/files/templates/delete_post_modal.html @@ -1,5 +1,5 @@