Reload comments bug fix
This commit is contained in:
@@ -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));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user