diff options
author | Stefan Giehl <stefan@piwik.org> | 2018-06-14 05:36:38 +0300 |
---|---|---|
committer | diosmosis <diosmosis@users.noreply.github.com> | 2018-06-14 05:36:38 +0300 |
commit | 6a0c96034683b34e632ef576b73be85695d439a3 (patch) | |
tree | 70a8b6e7e471bca7e39fa808d2b2b74ff70552a1 /plugins/Annotations | |
parent | 8b5f334e0deb865af56a3b84133b7a7c1575bb1d (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/Annotations')
-rwxr-xr-x | plugins/Annotations/javascripts/annotations.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/Annotations/javascripts/annotations.js b/plugins/Annotations/javascripts/annotations.js index b6d08e9856..0556b6027f 100755 --- a/plugins/Annotations/javascripts/annotations.js +++ b/plugins/Annotations/javascripts/annotations.js @@ -28,7 +28,7 @@ ajaxRequest.addParams(ajaxParams, 'get'); ajaxRequest.setCallback(callback); ajaxRequest.setFormat('html'); - ajaxRequest.send(false); + ajaxRequest.send(); }, // calls Annotations.addAnnotation @@ -49,7 +49,7 @@ ajaxRequest.withTokenInUrl(); ajaxRequest.setCallback(callback); ajaxRequest.setFormat('html'); - ajaxRequest.send(false); + ajaxRequest.send(); }, // calls Annotations.saveAnnotation @@ -72,7 +72,7 @@ ajaxRequest.withTokenInUrl(); ajaxRequest.setCallback(callback); ajaxRequest.setFormat('html'); - ajaxRequest.send(false); + ajaxRequest.send(); }, // calls Annotations.deleteAnnotation @@ -92,7 +92,7 @@ ajaxRequest.withTokenInUrl(); ajaxRequest.setCallback(callback); ajaxRequest.setFormat('html'); - ajaxRequest.send(false); + ajaxRequest.send(); }, // calls Annotations.getEvolutionIcons @@ -114,7 +114,7 @@ ajaxRequest.addParams(ajaxParams, 'get'); ajaxRequest.setFormat('html'); ajaxRequest.setCallback(callback); - ajaxRequest.send(false); + ajaxRequest.send(); } }; |