mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-06-19 04:15:17 +00:00
Can send a request on the API to delete group logo.
This commit is contained in:
@ -95,6 +95,21 @@ ComunicWeb.components.groups.interface = {
|
||||
var apiURI = "groups/upload_logo";
|
||||
data.append("id", id);
|
||||
ComunicWeb.common.api.makeFormDatarequest(apiURI, data, true, callback);
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Delete user logo
|
||||
*
|
||||
* @param {Number} id The ID of the target group
|
||||
* @param {Function} callback
|
||||
*/
|
||||
deleteLogo: function(id, callback){
|
||||
//Perform the request over the API
|
||||
var apiURI = "groups/delete_logo";
|
||||
var params = {
|
||||
id: id
|
||||
};
|
||||
ComunicWeb.common.api.makeAPIrequest(apiURI, params, true, callback);
|
||||
},
|
||||
|
||||
};
|
Reference in New Issue
Block a user