modified masonry and posts, masonry is now reusable on group pages.

This commit is contained in:
K. Nobel
2017-01-30 15:28:54 +01:00
parent f3df682af5
commit 1acad8e765
7 changed files with 101 additions and 50 deletions

View File

@@ -90,7 +90,7 @@ function masonry(mode) {
/*
* Get the posts from the server.
*/
$.post("API/getPosts.php", { usr : userID })
$.post("API/getPosts.php", { usr : userID, grp : groupID })
.done(function(data) {
posts = JSON.parse(data);

View File

@@ -4,7 +4,9 @@ function postComment(buttonValue) {
$.post(
"API/postComment.php",
formData
);
).done(function(data) {
console.log(data);
});
$("#newcomment").val("");