From 9c9c745dfb3a8b78c508d86550d73d5294b0f401 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sun, 26 Sep 2021 11:11:54 +0200 Subject: [PATCH] fds --- files/templates/comments.html | 25 +------------------------ files/templates/delete_post_modal.html | 6 +----- 2 files changed, 2 insertions(+), 29 deletions(-) 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 @@