diff options
author | sgiehl <stefangiehl@gmail.com> | 2011-09-18 21:54:11 +0400 |
---|---|---|
committer | sgiehl <stefangiehl@gmail.com> | 2011-09-18 21:54:11 +0400 |
commit | 327da50d7ede94b18f7f8c890ff4420057e170c3 (patch) | |
tree | a25bf942e3729743f209a13108b3a57a251c7ae5 /plugins/SitesManager | |
parent | 79f2ca33ebb405b1ac6db47517362521ebf0fb1b (diff) |
fixes #2590 added add website link at bottom of all websites dashboard
git-svn-id: http://dev.piwik.org/svn/trunk@5179 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/SitesManager')
-rw-r--r-- | plugins/SitesManager/Controller.php | 2 | ||||
-rw-r--r-- | plugins/SitesManager/templates/SitesManager.tpl | 7 |
2 files changed, 9 insertions, 0 deletions
diff --git a/plugins/SitesManager/Controller.php b/plugins/SitesManager/Controller.php index 150be6c75e..3ce067c7a8 100644 --- a/plugins/SitesManager/Controller.php +++ b/plugins/SitesManager/Controller.php @@ -53,6 +53,8 @@ class Piwik_SitesManager_Controller extends Piwik_Controller_Admin $view->globalExcludedQueryParameters = str_replace(',',"\n", $excludedQueryParametersGlobal); $view->currentIpAddress = Piwik_IP::getIpFromHeader(); + $view->showAddSite = (boolean) Piwik_Common::getRequestVar('showaddsite', false); + $this->setBasicVariablesView($view); $view->menu = Piwik_GetAdminMenu(); echo $view->render(); diff --git a/plugins/SitesManager/templates/SitesManager.tpl b/plugins/SitesManager/templates/SitesManager.tpl index 27d2d82ede..ae82d4a674 100644 --- a/plugins/SitesManager/templates/SitesManager.tpl +++ b/plugins/SitesManager/templates/SitesManager.tpl @@ -211,6 +211,13 @@ vertical-align:middle; {ajaxErrorDiv id=ajaxErrorGlobalSettings} {ajaxLoadingDiv id=ajaxLoadingGlobalSettings} {/if} +{if $showAddSite} +<script type="text/javascript">{literal} +$(document).ready(function(){ + $('.addRowSite:first').trigger('click'); +}); +{/literal}</script> +{/if} <br /><br /><br /><br /> {include file="CoreAdminHome/templates/footer.tpl"} |