diff --git a/assets/js/common/functionsSchema.js b/assets/js/common/functionsSchema.js index 95f9b083..e9b90190 100644 --- a/assets/js/common/functionsSchema.js +++ b/assets/js/common/functionsSchema.js @@ -440,7 +440,7 @@ var ComunicWeb = { /** * Get multiple users informations */ - getMultipleUsersInfos: function(usersID, afterGetUserInfos, forceRequest){}, + getMultipleUsersInfo: function(usersID, afterGetUserInfos, forceRequest){}, /** * Empty user informations cache diff --git a/assets/js/common/shorcuts.js b/assets/js/common/shorcuts.js index 03322487..2aec6869 100644 --- a/assets/js/common/shorcuts.js +++ b/assets/js/common/shorcuts.js @@ -116,8 +116,8 @@ function userIDorPath(infos){ * @param {Boolean} forceRequest Force the request to be made * @return {Boolean} True for a success */ -function getMultipleUsersInfos(usersID, afterGetUserInfos, forceRequest){ - ComunicWeb.user.userInfos.getMultipleUsersInfos(usersID, afterGetUserInfos, forceRequest); +function getMultipleUsersInfo(usersID, afterGetUserInfos, forceRequest){ + ComunicWeb.user.userInfos.getMultipleUsersInfo(usersID, afterGetUserInfos, forceRequest); } /** diff --git a/assets/js/components/comments/ui.js b/assets/js/components/comments/ui.js index b2744bd5..37c94580 100644 --- a/assets/js/components/comments/ui.js +++ b/assets/js/components/comments/ui.js @@ -19,7 +19,7 @@ ComunicWeb.components.comments.ui = { var usersID = ComunicWeb.components.comments.utils.get_users_id(infos); //Get informations about the users - var usersInfo = ComunicWeb.user.userInfos.getMultipleUsersInfos(usersID, function(result){ + var usersInfo = ComunicWeb.user.userInfos.getMultipleUsersInfo(usersID, function(result){ //Check for errors if(result.error){ diff --git a/assets/js/components/conversations/chatWindows.js b/assets/js/components/conversations/chatWindows.js index a291b258..21dde14b 100644 --- a/assets/js/components/conversations/chatWindows.js +++ b/assets/js/components/conversations/chatWindows.js @@ -279,7 +279,7 @@ ComunicWeb.components.conversations.chatWindows = { } //Get informations about the members of the conversation - getMultipleUsersInfos(informations.members, function(membersInfos){ + getMultipleUsersInfo(informations.members, function(membersInfos){ //Quit in case of error if(informations.error){ diff --git a/assets/js/components/conversations/unreadDropdown.js b/assets/js/components/conversations/unreadDropdown.js index 26b0b4c7..9bca73c8 100644 --- a/assets/js/components/conversations/unreadDropdown.js +++ b/assets/js/components/conversations/unreadDropdown.js @@ -124,7 +124,7 @@ ComunicWeb.components.conversations.unreadDropdown = { } //Get informations about the users - ComunicWeb.user.userInfos.getMultipleUsersInfos(usersID, function(usersInfos){ + ComunicWeb.user.userInfos.getMultipleUsersInfo(usersID, function(usersInfos){ //Check for errors if(usersInfos.error){ diff --git a/assets/js/components/friends/friendsBar.js b/assets/js/components/friends/friendsBar.js index e5cdb5bb..11f9722d 100644 --- a/assets/js/components/friends/friendsBar.js +++ b/assets/js/components/friends/friendsBar.js @@ -106,7 +106,7 @@ ComunicWeb.components.friends.bar = { } //Get users ID informations - ComunicWeb.user.userInfos.getMultipleUsersInfos(usersID, function(usersInfos){ + ComunicWeb.user.userInfos.getMultipleUsersInfo(usersID, function(usersInfos){ //Clean the area listFriendsElem.innerHTML = ""; diff --git a/assets/js/components/friends/listModal.js b/assets/js/components/friends/listModal.js index f088120e..b857b454 100644 --- a/assets/js/components/friends/listModal.js +++ b/assets/js/components/friends/listModal.js @@ -170,7 +170,7 @@ ComunicWeb.components.friends.listModal = { }); //Get informations about the users - ComunicWeb.user.userInfos.getMultipleUsersInfos(ids, function(users){ + ComunicWeb.user.userInfos.getMultipleUsersInfo(ids, function(users){ //Check for errors if(users.error){ @@ -244,7 +244,7 @@ ComunicWeb.components.friends.listModal = { }); //Get informations about the users - ComunicWeb.user.userInfos.getMultipleUsersInfos(usersID, function(users){ + ComunicWeb.user.userInfos.getMultipleUsersInfo(usersID, function(users){ //Check for errors if(users.error){ diff --git a/assets/js/components/notifications/dropdown.js b/assets/js/components/notifications/dropdown.js index 7c83e2b2..d6300ec6 100644 --- a/assets/js/components/notifications/dropdown.js +++ b/assets/js/components/notifications/dropdown.js @@ -158,7 +158,7 @@ ComunicWeb.components.notifications.dropdown = { var users_id = ComunicWeb.components.notifications.utils.get_users_id(result); //Get informations about the users - ComunicWeb.user.userInfos.getMultipleUsersInfos(users_id, function(users){ + ComunicWeb.user.userInfos.getMultipleUsersInfo(users_id, function(users){ //Check for errors if(users.error){ diff --git a/assets/js/components/posts/ui.js b/assets/js/components/posts/ui.js index 50842e12..980f26a0 100644 --- a/assets/js/components/posts/ui.js +++ b/assets/js/components/posts/ui.js @@ -109,7 +109,7 @@ ComunicWeb.components.posts.ui = { if(info.user_page_id != info.userID) usersToFetch.push(info.user_page_id) - getMultipleUsersInfos(usersToFetch, function(result){ + getMultipleUsersInfo(usersToFetch, function(result){ if(result.error) { ComunicWeb.debug.logMessage("Could not get some users info!"); userName.innerHTML = lang("posts_ui_error"); diff --git a/assets/js/components/search/form.js b/assets/js/components/search/form.js index 828e45cd..7e57e6b5 100644 --- a/assets/js/components/search/form.js +++ b/assets/js/components/search/form.js @@ -87,7 +87,7 @@ ComunicWeb.components.search.form = { return false; //Get information about related groups and users - getMultipleUsersInfos(ComunicWeb.components.search.utils.getUsersId(results), function(usersInfo){ + getMultipleUsersInfo(ComunicWeb.components.search.utils.getUsersId(results), function(usersInfo){ //Check for errors if(usersInfo.error) diff --git a/assets/js/components/userSelect/userSelect.js b/assets/js/components/userSelect/userSelect.js index 07830cc9..8fa3accd 100644 --- a/assets/js/components/userSelect/userSelect.js +++ b/assets/js/components/userSelect/userSelect.js @@ -112,7 +112,7 @@ ComunicWeb.components.userSelect = { pushEntries: function(inputSelect, usersID){ //Get informations about the entries - getMultipleUsersInfos(usersID, function(usersInfos){ + getMultipleUsersInfo(usersID, function(usersInfos){ //Check for errors if(usersInfos.error){ diff --git a/assets/js/pages/conversations/conversation.js b/assets/js/pages/conversations/conversation.js index 69f852e8..c0a1b9ae 100644 --- a/assets/js/pages/conversations/conversation.js +++ b/assets/js/pages/conversations/conversation.js @@ -105,7 +105,7 @@ ComunicWeb.pages.conversations.conversation = { ComunicWeb.pages.conversations.conversation._conv_info.conversation = result; //Time to load user information - ComunicWeb.user.userInfos.getMultipleUsersInfos(result.members, function(membersInfo){ + ComunicWeb.user.userInfos.getMultipleUsersInfo(result.members, function(membersInfo){ //Check for errors if(membersInfo.error) diff --git a/assets/js/pages/groups/pages/members.js b/assets/js/pages/groups/pages/members.js index 7a46e6dd..d8256c09 100644 --- a/assets/js/pages/groups/pages/members.js +++ b/assets/js/pages/groups/pages/members.js @@ -211,7 +211,7 @@ ComunicWeb.pages.groups.pages.members = { var membersIDs = ComunicWeb.components.groups.utils.getMembersIDs(members); //Get information about the members of the group - getMultipleUsersInfos(membersIDs, function(users){ + getMultipleUsersInfo(membersIDs, function(users){ //Check for errors if(users.error){ diff --git a/assets/js/pages/search/main.js b/assets/js/pages/search/main.js index a3695b55..7c9daa17 100644 --- a/assets/js/pages/search/main.js +++ b/assets/js/pages/search/main.js @@ -104,7 +104,7 @@ ComunicWeb.pages.search.main = { } //Get information about related users - getMultipleUsersInfos(ComunicWeb.components.search.utils.getUsersId(result), function(usersInfo){ + getMultipleUsersInfo(ComunicWeb.components.search.utils.getUsersId(result), function(usersInfo){ if(usersInfo.error){ return target.appendChild(ComunicWeb.common.messages.createCalloutElem( diff --git a/assets/js/user/userInfos.js b/assets/js/user/userInfos.js index b9b7ab72..b0d99572 100644 --- a/assets/js/user/userInfos.js +++ b/assets/js/user/userInfos.js @@ -25,10 +25,10 @@ ComunicWeb.user.userInfos = { if(userID == "current") userID = ComunicWeb.user.userLogin.getUserID(); - //getMultipleUsersInfos mirror + //getMultipleUsersInfo mirror var usersID = [userID]; - return this.getMultipleUsersInfos(usersID, function(result){ + return this.getMultipleUsersInfo(usersID, function(result){ //We check if an error occured if(result.error) afterGetUserInfos(result); @@ -48,7 +48,7 @@ ComunicWeb.user.userInfos = { * @param {Boolean} forceRequest Force the request to be made * @return {Boolean} True for a success */ - getMultipleUsersInfos: function(usersID, afterGetUserInfos, forceRequest){ + getMultipleUsersInfo: function(usersID, afterGetUserInfos, forceRequest){ //First, check if informations are already available in the cache for some users var cachedInformations = {}; @@ -159,7 +159,7 @@ ComunicWeb.user.userInfos = { } //Preload users informations - ComunicWeb.user.userInfos.getMultipleUsersInfos(response, function(usersInfos){ + ComunicWeb.user.userInfos.getMultipleUsersInfo(response, function(usersInfos){ //Go to next action afterSearch(usersInfos); }); @@ -175,7 +175,7 @@ ComunicWeb.user.userInfos = { */ getNames: function(usersID, afterNames){ //Get users informations - this.getMultipleUsersInfos(usersID, function(usersInfo){ + this.getMultipleUsersInfo(usersID, function(usersInfo){ //Check for errors if(usersInfo.error){