diff --git a/assets/js/components/userSelect/userSelect.js b/assets/js/components/userSelect/userSelect.js index e9dcc793..07830cc9 100644 --- a/assets/js/components/userSelect/userSelect.js +++ b/assets/js/components/userSelect/userSelect.js @@ -109,7 +109,7 @@ ComunicWeb.components.userSelect = { * @param {array} usersID The ID of the users to push in select2 element * @return {Boolean} True for a success */ - pushEntries(inputSelect, usersID){ + pushEntries: function(inputSelect, usersID){ //Get informations about the entries getMultipleUsersInfos(usersID, function(usersInfos){ diff --git a/assets/js/pages/userPage/posts.js b/assets/js/pages/userPage/posts.js index ca56c1f5..d85ccf28 100644 --- a/assets/js/pages/userPage/posts.js +++ b/assets/js/pages/userPage/posts.js @@ -87,7 +87,7 @@ ComunicWeb.pages.userPage.posts = { * @param {HTMLElement} target The target for the posts * @param {function} callback What to do once the posts have been loaded */ - _load_posts(userInfos, target, callback){ + _load_posts: function(userInfos, target, callback){ //Get the posts from the API ComunicWeb.components.posts.interface.get_user(userInfos.userID, this._last_post_id, function(result){