diff options
author | mattpiwik <matthieu.aubry@gmail.com> | 2008-07-04 06:32:53 +0400 |
---|---|---|
committer | mattpiwik <matthieu.aubry@gmail.com> | 2008-07-04 06:32:53 +0400 |
commit | c4803123feeff3aeeaa4cf30ebed9e25e95a05f5 (patch) | |
tree | b9ce4831fdf4e7a8f11ae939220c29de4df2ef07 /plugins/Dashboard | |
parent | 0eaa7cae739e45825921ff4336db07fe1f081e11 (diff) |
- fixing dashboard when using multiple site
git-svn-id: http://dev.piwik.org/svn/trunk@549 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/Dashboard')
-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>
|