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:
authorsgiehl <stefangiehl@gmail.com>2011-12-17 16:07:54 +0400
committersgiehl <stefangiehl@gmail.com>2011-12-17 16:07:54 +0400
commite08c1e5a0d2bde94aad16e0b599dfb5d0277e75d (patch)
treebc968a22742bbe91ec9e64088e9542402e7b9e66 /plugins/Dashboard/templates/index.tpl
parent7fdbe114c9955819208efcea4e8bb1dce9fb723c (diff)
refs #1559 remove button on switching page
git-svn-id: http://dev.piwik.org/svn/trunk@5558 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/Dashboard/templates/index.tpl')
-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});
}