mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-06-19 04:15:17 +00:00
Created friendship request buttons
This commit is contained in:
@ -90,6 +90,25 @@ ComunicWeb.components.friends.list = {
|
||||
return true;
|
||||
},
|
||||
|
||||
/**
|
||||
* Get the current status of a friendship relation
|
||||
*
|
||||
* @param {Integer} friendID The ID of the target friend
|
||||
* @param {Function} callback What to do once we get the response
|
||||
*/
|
||||
getStatus: function(friendID, callback){
|
||||
|
||||
//Prepare the API request
|
||||
var apiURI = "friends/getStatus";
|
||||
var params = {
|
||||
"friendID": friendID
|
||||
};
|
||||
|
||||
//Process request
|
||||
ComunicWeb.common.api.makeAPIrequest(apiURI, params, true, callback);
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* Empty friends cache list
|
||||
*
|
||||
|
Reference in New Issue
Block a user