From 1d2ae3d2824ccedfc8d3cff88ad2cfc7d47bfe2c Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Wed, 5 Jul 2023 17:23:15 +0300 Subject: [PATCH] cs --- client/src/ajax.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/client/src/ajax.js b/client/src/ajax.js index 7633f98313..a6fe119d20 100644 --- a/client/src/ajax.js +++ b/client/src/ajax.js @@ -48,6 +48,18 @@ let onTimeout; * @param {Object.} [options] */ +/** + * Options. + * + * @typedef {Object} Espo.Ajax~Options + * + * @property {Number} [timeout] A timeout. + * @property {Object.} [headers] A request headers. + * @property {'json'|'text'} [dataType] A data type. + * @property {string} [contentType] A content type. + * @property {boolean} [resolveWithXhr] To resolve with `XMLHttpRequest`. + */ + const baseUrl = window.location.origin + window.location.pathname; // noinspection JSUnusedGlobalSymbols @@ -56,18 +68,6 @@ const baseUrl = window.location.origin + window.location.pathname; */ const Ajax = Espo.Ajax = { - /** - * Options. - * - * @typedef {Object} Espo.Ajax~Options - * - * @property {Number} [timeout] A timeout. - * @property {Object.} [headers] A request headers. - * @property {'json'|'text'} [dataType] A data type. - * @property {string} [contentType] A content type. - * @property {boolean} [resolveWithXhr] To resolve with `XMLHttpRequest`. - */ - /** * Request. *