Reload comments bug fix

This commit is contained in:
Lars van Hijfte
2017-01-31 13:56:34 +01:00
parent 794b5ab294
commit 2dd7dd8140

View File

@@ -4,9 +4,7 @@ function postComment(buttonValue) {
$.post( $.post(
"API/postComment.php", "API/postComment.php",
formData formData
).done(function(data) { );
console.log(data);
});
$("#newcomment").val(""); $("#newcomment").val("");
@@ -15,6 +13,6 @@ function postComment(buttonValue) {
"API/loadPost.php", "API/loadPost.php",
$("#newcommentform").serialize() $("#newcommentform").serialize()
).done(function (data) { ).done(function (data) {
$('#modal-response').html(data); $('#modal-response').html(fancyText(data));
}); });
} }