mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-06-19 04:15:17 +00:00
Added a live notice to check the availability of a virtual directory for a group.
This commit is contained in:
@ -109,6 +109,23 @@ ComunicWeb.components.groups.interface = {
|
||||
ComunicWeb.common.api.makeAPIrequest(apiURI, settings, true, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* Check the availability of a virtual directory for a group
|
||||
*
|
||||
* @param {String} directory The directory to check
|
||||
* @param {Number} groupID The ID of the group to check
|
||||
* @param {Function} callback
|
||||
*/
|
||||
checkVirtualDirectory: function(directory, groupID, callback){
|
||||
//Perform the request over the API
|
||||
var apiURI = "groups/checkVirtualDirectory";
|
||||
var params = {
|
||||
groupID: groupID,
|
||||
directory: directory
|
||||
};
|
||||
ComunicWeb.common.api.makeAPIrequest(apiURI, params, true, callback);
|
||||
},
|
||||
|
||||
/**
|
||||
* Upload a new group logo
|
||||
*
|
||||
|
Reference in New Issue
Block a user