From 2dd7dd8140d6e96cdbb044c080f5f279dd8aa2ae Mon Sep 17 00:00:00 2001 From: Lars van Hijfte Date: Tue, 31 Jan 2017 13:56:34 +0100 Subject: [PATCH] Reload comments bug fix --- website/public/js/post.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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