ComunicWeb/assets/js/pages/userPage/posts.js
2017-12-29 08:58:22 +01:00

32 lines
601 B
JavaScript

/**
* Posts function
*
* @author Pierre HUBERT
*/
ComunicWeb.pages.userPage.posts = {
/**
* Display the posts
*
* @param {Object} userInfos Informations about the user
* @param {Object} params Additionnal parametres passed with the request
* @param {HTMLElement} target The target where the posts will be applied
*/
display: function(userInfos, params, target){
//Create posts blocks
var postsBlock = createElem2({
appendTo: target,
type: "div",
class: "box box-primary"
});
//Check whether a precise post has to be opened or not
//TODO implement
}
};