Send a request to the server to update general account settings.

This commit is contained in:
Pierre
2018-04-17 19:47:18 +02:00
parent afb65e1d81
commit e065b6ac18
2 changed files with 56 additions and 1 deletions

View File

@ -20,6 +20,17 @@ ComunicWeb.components.settings.interface = {
},
/**
* Set (update) general account settings
*
* @param {object} settings New general account settings
* @param {function} callback Callback function
*/
setGeneral: function(settings, callback){
var apiURI = "settings/set_general";
ComunicWeb.common.api.makeAPIrequest(apiURI, settings, true, callback);
},
/**
* Check the availability of the virtual directory for user
*