mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
ajaxTimeout param
This commit is contained in:
@@ -155,6 +155,7 @@ class ClientManager
|
||||
'linksHtml' => $linksHtml,
|
||||
'favicon196Path' => $this->getMetadata()->get(['app', 'client', 'favicon196']) ?? 'client/img/favicon196x196.png',
|
||||
'faviconPath' => $this->getMetadata()->get(['app', 'client', 'favicon']) ?? 'client/img/favicon.ico',
|
||||
'ajaxTimeout' => $this->getConfig()->get('ajaxTimeout') ?? 60000,
|
||||
];
|
||||
|
||||
$html = file_get_contents($htmlFilePath);
|
||||
|
||||
@@ -93,6 +93,8 @@ define(
|
||||
this.url = options.url || this.url;
|
||||
this.basePath = options.basePath || '';
|
||||
|
||||
this.ajaxTimeout = options.ajaxTimeout || 0;
|
||||
|
||||
this.appParams = {};
|
||||
|
||||
this.loader = Espo.loader;
|
||||
@@ -644,7 +646,7 @@ define(
|
||||
}
|
||||
},
|
||||
dataType: 'json',
|
||||
timeout: 60000,
|
||||
timeout: this.ajaxTimeout,
|
||||
contentType: 'application/json'
|
||||
});
|
||||
|
||||
|
||||
@@ -21,7 +21,8 @@
|
||||
useCache: {{useCache}},
|
||||
cacheTimestamp: {{cacheTimestamp}},
|
||||
basePath: '{{basePath}}',
|
||||
url: '{{apiUrl}}'
|
||||
url: '{{apiUrl}}',
|
||||
ajaxTimeout: {{ajaxTimeout}},
|
||||
}, function (app) {
|
||||
{{runScript}}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user