implemented archive post api in home
This commit is contained in:
parent
bc7ae07530
commit
b9936781d5
@ -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");
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
Loading…
x
Reference in New Issue
Block a user