diff --git a/website/public/js/post.js b/website/public/js/post.js index 4a8ebc7..e88d3eb 100644 --- a/website/public/js/post.js +++ b/website/public/js/post.js @@ -4,9 +4,7 @@ function postComment(buttonValue) { $.post( "API/postComment.php", formData - ).done(function(data) { - console.log(data); - }); + ); $("#newcomment").val(""); @@ -15,6 +13,6 @@ function postComment(buttonValue) { "API/loadPost.php", $("#newcommentform").serialize() ).done(function (data) { - $('#modal-response').html(data); + $('#modal-response').html(fancyText(data)); }); } \ No newline at end of file