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@piwik.org>2018-06-14 05:36:38 +0300
committerdiosmosis <diosmosis@users.noreply.github.com>2018-06-14 05:36:38 +0300
commit6a0c96034683b34e632ef576b73be85695d439a3 (patch)
tree70a8b6e7e471bca7e39fa808d2b2b74ff70552a1 /plugins/CoreHome/javascripts
parent8b5f334e0deb865af56a3b84133b7a7c1575bb1d (diff)
Remove usage of synchronous ajax requests (#12546)
* Do not use sync ajax requests * adds deprecation comments * convert some methods to be fully async * adds minimum waittime after page load in ui tests * improve wait times
Diffstat (limited to 'plugins/CoreHome/javascripts')
-rwxr-xr-xplugins/CoreHome/javascripts/corehome.js2
-rw-r--r--plugins/CoreHome/javascripts/dataTable.js4
-rw-r--r--plugins/CoreHome/javascripts/dataTable_rowactions.js2
-rw-r--r--plugins/CoreHome/javascripts/popover.js2
4 files changed, 5 insertions, 5 deletions
diff --git a/plugins/CoreHome/javascripts/corehome.js b/plugins/CoreHome/javascripts/corehome.js
index b50296bfaa..c84c80959e 100755
--- a/plugins/CoreHome/javascripts/corehome.js
+++ b/plugins/CoreHome/javascripts/corehome.js
@@ -58,7 +58,7 @@
});
});
ajaxRequest.setFormat('html');
- ajaxRequest.send(false);
+ ajaxRequest.send();
return false;
});
diff --git a/plugins/CoreHome/javascripts/dataTable.js b/plugins/CoreHome/javascripts/dataTable.js
index ccc6bf00a1..a5f3906a0b 100644
--- a/plugins/CoreHome/javascripts/dataTable.js
+++ b/plugins/CoreHome/javascripts/dataTable.js
@@ -275,7 +275,7 @@ $.extend(DataTable.prototype, UIControl.prototype, {
});
ajaxRequest.setFormat('html');
- ajaxRequest.send(false);
+ ajaxRequest.send();
},
// Function called when the AJAX request is successful
@@ -1361,7 +1361,7 @@ $.extend(DataTable.prototype, UIControl.prototype, {
}, 'post');
ajaxRequest.setCallback(function () {});
ajaxRequest.setFormat('html');
- ajaxRequest.send(false);
+ ajaxRequest.send();
}
},
diff --git a/plugins/CoreHome/javascripts/dataTable_rowactions.js b/plugins/CoreHome/javascripts/dataTable_rowactions.js
index d357a5e594..b937979cdf 100644
--- a/plugins/CoreHome/javascripts/dataTable_rowactions.js
+++ b/plugins/CoreHome/javascripts/dataTable_rowactions.js
@@ -426,5 +426,5 @@ DataTable_RowActions_RowEvolution.prototype.showRowEvolution = function (apiMeth
ajaxRequest.addParams(requestParams, 'get');
ajaxRequest.setCallback(callback);
ajaxRequest.setFormat('html');
- ajaxRequest.send(false);
+ ajaxRequest.send();
};
diff --git a/plugins/CoreHome/javascripts/popover.js b/plugins/CoreHome/javascripts/popover.js
index 5bf316991c..61308b22cf 100644
--- a/plugins/CoreHome/javascripts/popover.js
+++ b/plugins/CoreHome/javascripts/popover.js
@@ -295,7 +295,7 @@ var Piwik_Popover = (function () {
ajaxRequest.addParams(piwikHelper.getArrayFromQueryString(url), 'get');
ajaxRequest.setCallback(callback);
ajaxRequest.setFormat('html');
- ajaxRequest.send(false);
+ ajaxRequest.send();
}
};
})();