"Niet slecht."-button!

This commit is contained in:
Marijn Jansen
2017-01-27 12:20:50 +01:00
parent 82c2eaccb3
commit 3b542e0878
6 changed files with 23 additions and 12 deletions

View File

@@ -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);
});
}
}