diff options
-rw-r--r-- | plugins/Dashboard/templates/Dashboard.js | 7 | ||||
-rw-r--r-- | plugins/Dashboard/templates/index.tpl | 6 |
2 files changed, 4 insertions, 9 deletions
diff --git a/plugins/Dashboard/templates/Dashboard.js b/plugins/Dashboard/templates/Dashboard.js index f2974449b2..797f0dd8c9 100644 --- a/plugins/Dashboard/templates/Dashboard.js +++ b/plugins/Dashboard/templates/Dashboard.js @@ -576,12 +576,7 @@ dashboard.prototype = async: true, error: ajaxHandleError, // on request fails success: onLoaded, // on request succeeds - data: { module: pluginId, - action: actionId, - idSite: piwik.idSite, - period: piwik.period, - date: piwik.currentDateStr - } + data: "module="+pluginId+"&action="+actionId+"&idSite="+piwik.idSite+"&period="+piwik.period+"&date="+piwik.currentDateStr }; $.ajax(ajaxRequest); } diff --git a/plugins/Dashboard/templates/index.tpl b/plugins/Dashboard/templates/index.tpl index db8a55b3a7..113dec6697 100644 --- a/plugins/Dashboard/templates/index.tpl +++ b/plugins/Dashboard/templates/index.tpl @@ -12,9 +12,9 @@ {/if}
piwik.availableWidgets = {$availableWidgets};
- piwik.idSite = decodeURIComponent("{$idSite}");
- piwik.period = decodeURIComponent("{$period}");
- piwik.currentDateStr = decodeURIComponent("{$date}");
+ piwik.idSite = "{$idSite}";
+ piwik.period = "{$period}";
+ piwik.currentDateStr = "{$date}";
</script>
<script type="text/javascript" src="plugins/Dashboard/templates/Dashboard.js"></script>
|