mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-26 22:09:21 +00:00
37 lines
821 B
JavaScript
37 lines
821 B
JavaScript
/**
|
|
* Settings interface
|
|
*
|
|
* @author Pierre HUBERT
|
|
*/
|
|
|
|
ComunicWeb.components.settings.interface = {
|
|
|
|
/**
|
|
* Get general account settings
|
|
*
|
|
* @param {function} callback
|
|
*/
|
|
getGeneral: function(callback){
|
|
|
|
//Make a request over the API
|
|
var apiURI = "settings/get_general";
|
|
var params = {};
|
|
ComunicWeb.common.api.makeAPIrequest(apiURI, params, true, callback);
|
|
|
|
},
|
|
|
|
/**
|
|
* Check the availability of the virtual directory for user
|
|
*
|
|
* @param {string} directory The directory to check
|
|
* @param {function} callback The result of the request
|
|
*/
|
|
checkUserDirectoryAvailability: function(directory, callback){
|
|
var apiURI = "settings/check_user_directory_availability";
|
|
var params = {
|
|
directory: directory
|
|
};
|
|
ComunicWeb.common.api.makeAPIrequest(apiURI, params, true, callback);
|
|
}
|
|
|
|
} |