@@ -0,0 +1,579 @@
+function deletePost(post_id, user_id, csrf_token) %7B%0D%0A    $.ajax( %7B%0D%0A        type: 'post',%0D%0A        url: '/delete.php',%0D%0A        data: %7B%0D%0A            type: 2, // refer to /delete.php for information about this POST data.%0D%0A            topic_id: post_id,%0D%0A            user_id: user_id,%0D%0A            csrf_token: csrf_token%0D%0A        %7D,%0D%0A        success: function(html) %7B%0D%0A            if(html == 'true') %7B%0D%0A                // Later make it remove the comment from the page WITHOUT reloading?%0D%0A            %7D else %7B%0D%0A                alert(html);%0D%0A            %7D%0D%0A        %7D%0D%0A%0D%0A    %7D);%0D%0A%7D%0D%0A

Update delete_post.js