Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/Dashboard/templates/index.tpl3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/Dashboard/templates/index.tpl b/plugins/Dashboard/templates/index.tpl
index a59eca73c0..81679058a9 100644
--- a/plugins/Dashboard/templates/index.tpl
+++ b/plugins/Dashboard/templates/index.tpl
@@ -15,6 +15,9 @@ $(document).ready( function() {
// Standard dashboard
if($('#periodString').length)
{
+ var removeDashboardSettings = function() { $('#dashboardSettings').remove(); };
+ $('ul.nav').off('piwikSwitchPage', removeDashboardSettings);
+ $('ul.nav').on('piwikSwitchPage', removeDashboardSettings);
$('#periodString').after($('#dashboardSettings'));
$('#dashboardSettings').css({left:$('#periodString')[0].offsetWidth+10});
}