diff options
author | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2008-07-28 03:07:52 +0400 |
---|---|---|
committer | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2008-07-28 03:07:52 +0400 |
commit | e20c0f86431de3c35c3e5cf7f66d8d98c71aced7 (patch) | |
tree | 6f5c6359390128afa87da03e68eed0a3fd5ddaf2 /plugins/SitesManager/templates | |
parent | e768f4d2788a74d44ba102bbcf3f68e320174f7b (diff) |
- Adding description to each plugin
- cleaning plugins listing, splitting ExamplePlugin in multiple small plugins, renamed Home -> CoreHome PluginsAdmin -> CorePluginsAdmin AdminHome -> CoreAdminHome
- simplified authentication classes (not using Zend_Auth_Db anymore)
- adding a new widget listing the last posts on Piwik.org/blog
Diffstat (limited to 'plugins/SitesManager/templates')
-rw-r--r-- | plugins/SitesManager/templates/SitesManager.js | 17 | ||||
-rw-r--r-- | plugins/SitesManager/templates/SitesManager.tpl | 10 |
2 files changed, 15 insertions, 12 deletions
diff --git a/plugins/SitesManager/templates/SitesManager.js b/plugins/SitesManager/templates/SitesManager.js index ace93f743a..3faf03d0a8 100644 --- a/plugins/SitesManager/templates/SitesManager.js +++ b/plugins/SitesManager/templates/SitesManager.js @@ -21,6 +21,7 @@ function getDeleteSiteAJAX( idSite ) parameters.format = 'json'; parameters.method = 'SitesManager.deleteSite'; parameters.idSite = idSite; + parameters.token_auth = piwik_token_auth; ajaxRequest.data = parameters; @@ -43,16 +44,16 @@ function getAddSiteAJAX( row ) request += '&module=API'; request += '&format=json'; request += '&method=SitesManager.addSite'; - siteName = getEncoded(siteName); request += '&siteName='+siteName; - $.each(urls, function (key,value){ request+= '&urls[]='+escape(value);} ); - + request += '&token_auth='+piwik_token_auth; + ajaxRequest.data = request; return ajaxRequest; } + function getUpdateSiteAJAX( row ) { var ajaxRequest = getStandardAjaxConf(); @@ -70,15 +71,14 @@ 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; + ajaxRequest.data = request; return ajaxRequest; - } - - $(document).ready( function() { +$(document).ready( function() { $('.addRowSite').click( function() { ajaxHideError(); $(this).toggle(); @@ -148,9 +148,6 @@ function getUpdateSiteAJAX( row ) .prepend( $('<img src="plugins/UsersManager/images/ok.png" class="updateSite">') .click( function(){ $.ajax( getUpdateSiteAJAX( $('tr#'+idRow) ) ); } ) ); - - - } ); diff --git a/plugins/SitesManager/templates/SitesManager.tpl b/plugins/SitesManager/templates/SitesManager.tpl index 559fc6de69..541e56a271 100644 --- a/plugins/SitesManager/templates/SitesManager.tpl +++ b/plugins/SitesManager/templates/SitesManager.tpl @@ -12,16 +12,22 @@ padding:1em;
font-weight:bold;
}
+
+#editSites {
+ valign: top;
+}
</style>
{/literal}
-<h2>{'SitesManager_Sites'|translate}</h2>
+<h2>Websites Management</h2>
+<p>Your Web Analytics reports need Websites! Add, update, delete Websites, and show the Javascript to insert in your pages.</p>
+
<div id="ajaxError" style="display:none"></div>
<div id="ajaxLoading" style="display:none">{'General_LoadingData'|translate} <img src="themes/default/loading.gif" alt="" /></div>
{if $sites|@count == 0}
{'SitesManager_NoWebsites'|translate}
{else}
- <table id="editSites" border=1 cellpadding="10">
+ <table class="admin" id="editSites" border=1 cellpadding="10">
<thead>
<tr>
<th>{'SitesManager_Id'|translate}</th>
|