diff options
-rw-r--r-- | plugins/Dashboard/templates/index.tpl | 3 |
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}); } |