From c4803123feeff3aeeaa4cf30ebed9e25e95a05f5 Mon Sep 17 00:00:00 2001 From: mattpiwik Date: Fri, 4 Jul 2008 02:32:53 +0000 Subject: - fixing dashboard when using multiple site git-svn-id: http://dev.piwik.org/svn/trunk@549 59fd770c-687e-43c8-a1e3-f5a4ff64c105 --- plugins/Dashboard/templates/Dashboard.js | 7 +------ plugins/Dashboard/templates/index.tpl | 6 +++--- 2 files changed, 4 insertions(+), 9 deletions(-) (limited to 'plugins/Dashboard') 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}"; -- cgit v1.2.3