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:
authorThomas Steur <thomas.steur@gmail.com>2015-09-10 17:58:19 +0300
committersgiehl <stefan@piwik.org>2015-10-06 18:25:27 +0300
commit7d0b7e81bbdb2826dc3493c598185f1eca018264 (patch)
treefb91fc813f1b9787265c25f79c16a265362a0304 /plugins/Morpheus
parentc7928e4f7f83fd60d8a9a1f7da4b8b267e081c0b (diff)
forgot to commit latest changes
Diffstat (limited to 'plugins/Morpheus')
-rw-r--r--plugins/Morpheus/javascripts/ajaxHelper.js15
1 files changed, 10 insertions, 5 deletions
diff --git a/plugins/Morpheus/javascripts/ajaxHelper.js b/plugins/Morpheus/javascripts/ajaxHelper.js
index d8d0b27c2f..0f0e60259d 100644
--- a/plugins/Morpheus/javascripts/ajaxHelper.js
+++ b/plugins/Morpheus/javascripts/ajaxHelper.js
@@ -440,12 +440,17 @@ function ajaxHelper() {
this._isRequestToApiMethod = function () {
return this.getParams && this.getParams['module'] === 'API' && this.getParams['method'];
- }
+ };
+
this._getDefaultPostParams = function () {
- return {
- token_auth: piwik.token_auth
- };
- }
+ if (this.withToken || this._isRequestToApiMethod()) {
+ return {
+ token_auth: piwik.token_auth
+ };
+ }
+
+ return {};
+ };
/**
* Mixin the default parameters to send as POST