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 16:53:16 +0300
committerThomas Steur <thomas.steur@gmail.com>2015-09-10 16:53:16 +0300
commit1cba602949890ec3e6a60c4197bfa9801ec74323 (patch)
treedf0fa4dab8386303ea9376b0e5596c778af6fe2e /plugins/Morpheus
parentcb1c8f109c82d99968301ed2a1de5e99c50b2f9f (diff)
fix invalid token error after installation on IE8 and fix JS error re JSON in IE8
Diffstat (limited to 'plugins/Morpheus')
-rw-r--r--plugins/Morpheus/javascripts/ajaxHelper.js14
1 files changed, 9 insertions, 5 deletions
diff --git a/plugins/Morpheus/javascripts/ajaxHelper.js b/plugins/Morpheus/javascripts/ajaxHelper.js
index c6ab3fb7f2..2413e63372 100644
--- a/plugins/Morpheus/javascripts/ajaxHelper.js
+++ b/plugins/Morpheus/javascripts/ajaxHelper.js
@@ -366,7 +366,7 @@ function ajaxHelper() {
that.errorCallback.apply(this, arguments);
}
},
- success: function (response) {
+ success: function (response, status, request) {
if (that.loadingElement) {
$(that.loadingElement).hide();
}
@@ -395,7 +395,7 @@ function ajaxHelper() {
}
} else {
- that.callback(response);
+ that.callback(response, status, request);
}
--globalAjaxQueue.active;
@@ -416,6 +416,12 @@ function ajaxHelper() {
return $.ajax(ajaxCall);
};
+ this._getDefaultPostParams = function () {
+ return {
+ token_auth: piwik.token_auth
+ };
+ }
+
/**
* Mixin the default parameters to send as POST
*
@@ -425,9 +431,7 @@ function ajaxHelper() {
*/
this._mixinDefaultPostParams = function (params) {
- var defaultParams = {
- token_auth: piwik.token_auth
- };
+ var defaultParams = this._getDefaultPostParams();
for (var index in defaultParams) {