"Niet slecht."-button!
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
function postComment() {
|
||||
function postComment(buttonValue) {
|
||||
formData = $("#newcommentform").serializeArray();
|
||||
formData.push({name: "button", value: buttonValue});
|
||||
$.post(
|
||||
"API/postComment.php",
|
||||
$("#newcommentform").serialize()
|
||||
formData
|
||||
);
|
||||
|
||||
$("#newcomment").val("");
|
||||
@@ -13,6 +15,4 @@ function postComment() {
|
||||
).done(function (data) {
|
||||
$('#modal-response').html(data);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user