mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-22 20:19:21 +00:00
Fix another infos typo
This commit is contained in:
parent
fa585716ae
commit
7e3558d5f9
@ -440,7 +440,7 @@ var ComunicWeb = {
|
||||
/**
|
||||
* Get multiple users informations
|
||||
*/
|
||||
getMultipleUsersInfos: function(usersID, afterGetUserInfos, forceRequest){},
|
||||
getMultipleUsersInfo: function(usersID, afterGetUserInfos, forceRequest){},
|
||||
|
||||
/**
|
||||
* Empty user informations cache
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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){
|
||||
|
@ -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){
|
||||
|
@ -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){
|
||||
|
@ -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 = "";
|
||||
|
@ -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){
|
||||
|
@ -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){
|
||||
|
@ -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");
|
||||
|
@ -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)
|
||||
|
@ -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){
|
||||
|
@ -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)
|
||||
|
@ -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){
|
||||
|
@ -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(
|
||||
|
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user