From b9936781d5751c6548e92d3d74094613f88bf2df Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Sat, 25 May 2024 17:12:59 +0200 Subject: [PATCH] implemented archive post api in home --- res/forum/home/home.html | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/res/forum/home/home.html b/res/forum/home/home.html index aa74e40..220d4c7 100644 --- a/res/forum/home/home.html +++ b/res/forum/home/home.html @@ -137,4 +137,16 @@ { $("#image_popup").css("display", "none"); } + + function archive_post(post_id, author) + { + $.ajax + ({ + url: "./res/forum/api/archive_post.php?username=" + author + "&post_id=" + post_id, + success: function() + { + show("home"); + } + }); + } \ No newline at end of file