diff options
Diffstat (limited to 'plugins/Morpheus/javascripts/ajaxHelper.js')
-rw-r--r-- | plugins/Morpheus/javascripts/ajaxHelper.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/Morpheus/javascripts/ajaxHelper.js b/plugins/Morpheus/javascripts/ajaxHelper.js index 4cc1ac823e..e93c7a82e7 100644 --- a/plugins/Morpheus/javascripts/ajaxHelper.js +++ b/plugins/Morpheus/javascripts/ajaxHelper.js @@ -481,8 +481,12 @@ function ajaxHelper() { (this.postParams && this.postParams['module'] === 'API' && this.postParams['method']); }; + this._isWidgetizedRequest = function () { + return (broadcast.getValueFromUrl('module') == 'Widgetize'); + }; + this._getDefaultPostParams = function () { - if (this.withToken || this._isRequestToApiMethod()) { + if (this.withToken || this._isRequestToApiMethod() || this._isWidgetizedRequest()) { return { token_auth: piwik.token_auth }; |