mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-01 04:12:22 +03:00
34 lines
946 B
JavaScript
34 lines
946 B
JavaScript
/* ----------------------------------------------------------------------------
|
|
* Easy!Appointments - Open Source Web Scheduler
|
|
*
|
|
* @package EasyAppointments
|
|
* @author A.Tselegidis <alextselegidis@gmail.com>
|
|
* @copyright Copyright (c) Alex Tselegidis
|
|
* @license https://opensource.org/licenses/GPL-3.0 - GPLv3
|
|
* @link https://easyappointments.org
|
|
* @since v1.5.0
|
|
* ---------------------------------------------------------------------------- */
|
|
|
|
App.Http.LegalSettings = (function () {
|
|
/**
|
|
* Save legal settings.
|
|
*
|
|
* @param {Object} legalSettings
|
|
*
|
|
* @return {Object}
|
|
*/
|
|
function save(legalSettings) {
|
|
const url = App.Utils.Url.siteUrl('legal_settings/save');
|
|
|
|
const data = {
|
|
csrf_token: App.Vars.csrf_token,
|
|
legal_settings: legalSettings
|
|
};
|
|
|
|
return $.post(url, data);
|
|
}
|
|
|
|
return {
|
|
save
|
|
};
|
|
})();
|