diff options
author | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2008-10-29 16:37:22 +0300 |
---|---|---|
committer | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2008-10-29 16:37:22 +0300 |
commit | fd03f0d3ecc79e09852948ef961b2eb42521a07e (patch) | |
tree | 9198f01fc6bde603512bad7e07c040100519a62a /plugins/SitesManager/templates | |
parent | b0066c3052093edcc830fcad869b0703f1d09670 (diff) |
- moving global JS variables in a global array
- added token_auth at end of URLs to export data
Diffstat (limited to 'plugins/SitesManager/templates')
-rw-r--r-- | plugins/SitesManager/templates/SitesManager.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/SitesManager/templates/SitesManager.js b/plugins/SitesManager/templates/SitesManager.js index b8452bcdc5..df6b3ed9f1 100644 --- a/plugins/SitesManager/templates/SitesManager.js +++ b/plugins/SitesManager/templates/SitesManager.js @@ -20,7 +20,7 @@ function getDeleteSiteAJAX( idSite ) parameters.format = 'json'; parameters.method = 'SitesManager.deleteSite'; parameters.idSite = idSite; - parameters.token_auth = piwik_token_auth; + parameters.token_auth = piwik.token_auth; ajaxRequest.data = parameters; @@ -44,7 +44,7 @@ function getAddSiteAJAX( row ) siteName = getEncoded(siteName); request += '&siteName='+siteName; $.each(urls, function (key,value){ request+= '&urls[]='+escape(value);} ); - request += '&token_auth='+piwik_token_auth; + request += '&token_auth=' + piwik.token_auth; ajaxRequest.data = request; @@ -68,7 +68,7 @@ function getUpdateSiteAJAX( row ) request += '&siteName='+siteName; request += '&idSite='+idSite; $.each(urls, function (key,value){ if(value.length>1) request+= '&urls[]='+value;} ); - request += '&token_auth='+piwik_token_auth; + request += '&token_auth=' + piwik.token_auth; ajaxRequest.data = request; |