modified masonry and posts, masonry is now reusable on group pages.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -4,7 +4,9 @@ function postComment(buttonValue) {
|
||||
$.post(
|
||||
"API/postComment.php",
|
||||
formData
|
||||
);
|
||||
).done(function(data) {
|
||||
console.log(data);
|
||||
});
|
||||
|
||||
$("#newcomment").val("");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user