From 788708007319379956af1fbf18d88612bfb23dfa Mon Sep 17 00:00:00 2001 From: Pierre Date: Sun, 29 Apr 2018 21:21:01 +0200 Subject: [PATCH] Fix issue in functions definition --- assets/js/components/userSelect/userSelect.js | 2 +- assets/js/pages/userPage/posts.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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){