Fix another infos typo

This commit is contained in:
Pierre HUBERT 2019-05-16 15:07:58 +02:00
parent fa585716ae
commit 7e3558d5f9
15 changed files with 21 additions and 21 deletions

View File

@ -440,7 +440,7 @@ var ComunicWeb = {
/**
* Get multiple users informations
*/
getMultipleUsersInfos: function(usersID, afterGetUserInfos, forceRequest){},
getMultipleUsersInfo: function(usersID, afterGetUserInfos, forceRequest){},
/**
* Empty user informations cache

View File

@ -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);
}
/**

View File

@ -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){

View File

@ -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){

View File

@ -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){

View File

@ -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 = "";

View File

@ -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){

View File

@ -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){

View File

@ -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");

View File

@ -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)

View File

@ -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){

View File

@ -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)

View File

@ -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){

View File

@ -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(

View File

@ -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){