Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Giehl <stefan@matomo.org>2020-01-15 19:22:49 +0300
committerGitHub <noreply@github.com>2020-01-15 19:22:49 +0300
commitad011334b5370e0cc9fb55ce8d69196d9c7f5b06 (patch)
tree1a7f51ef25a7e096aeb2e4fa59f106839f59126e /plugins/Morpheus
parentbc25125d8a7208508d4699fe7e39ca0d6ff9c59e (diff)
remove possibility for synchronous ajax requests (#11756)
Diffstat (limited to 'plugins/Morpheus')
-rw-r--r--plugins/Morpheus/javascripts/ajaxHelper.js18
1 files changed, 2 insertions, 16 deletions
diff --git a/plugins/Morpheus/javascripts/ajaxHelper.js b/plugins/Morpheus/javascripts/ajaxHelper.js
index 56531ed1e6..03d15be891 100644
--- a/plugins/Morpheus/javascripts/ajaxHelper.js
+++ b/plugins/Morpheus/javascripts/ajaxHelper.js
@@ -72,12 +72,6 @@ function ajaxHelper() {
this.format = 'json';
/**
- * Should ajax request be asynchronous
- * @type {Boolean}
- */
- this.async = true;
-
- /**
* A timeout for the request which will override any global timeout
* @type {Boolean}
*/
@@ -372,17 +366,9 @@ function ajaxHelper() {
/**
* Send the request
- *
- * Note: Sending synchronous requests will be removed in Matomo 4
- *
- * @param {Boolean} [sync] indicates if the request should be synchronous (defaults to false)
* @return {void}
*/
- this.send = function (sync) {
- if (sync === true) {
- this.async = false;
- }
-
+ this.send = function () {
if ($(this.errorElement).length) {
$(this.errorElement).hide();
}
@@ -433,7 +419,7 @@ function ajaxHelper() {
url += $.param(parameters);
var ajaxCall = {
type: 'POST',
- async: this.async !== false,
+ async: true,
url: url,
dataType: this.format || 'json',
complete: this.completeCallback,