mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-29 07:26:05 +00:00
cs
This commit is contained in:
@@ -48,6 +48,18 @@ let onTimeout;
|
||||
* @param {Object.<string, *>} [options]
|
||||
*/
|
||||
|
||||
/**
|
||||
* Options.
|
||||
*
|
||||
* @typedef {Object} Espo.Ajax~Options
|
||||
*
|
||||
* @property {Number} [timeout] A timeout.
|
||||
* @property {Object.<string, string>} [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.<string, string>} [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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user