From 486bb58bf6d888fd2518ef61256d2cb5e9214863 Mon Sep 17 00:00:00 2001 From: Vincent Augagneur Date: Wed, 11 Sep 2013 11:07:38 +0200 Subject: [PATCH] //added dashboard widget config toggle display --- js/admin-dashboard.js | 19 +++++++++++++++++++ .../templates/hook/dashboard_zone_one.tpl | 8 ++++---- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/js/admin-dashboard.js b/js/admin-dashboard.js index 9817ca7d5..d1bcb363d 100644 --- a/js/admin-dashboard.js +++ b/js/admin-dashboard.js @@ -215,3 +215,22 @@ function getBlogRss() } }); } + +function toggleDashConfig(widget) +{ + if ($('#'+widget+' section.dash_config').hasClass('hide')) + { + $('#'+widget+' section').not('.dash_config').slideUp(500, function () { + $('#'+widget+' section.dash_config').fadeIn(500).removeClass('hide'); + }); + } + else + { + $('#'+widget+' section.dash_config').slideUp(500, function () { + $('#'+widget+' section').not('.dash_config').slideDown(500).removeClass('hide'); + $('#'+widget+' section.dash_config').addClass('hide') + }); + } +} + + diff --git a/modules/dashactivity/views/templates/hook/dashboard_zone_one.tpl b/modules/dashactivity/views/templates/hook/dashboard_zone_one.tpl index 9f3b7351e..cfdca1568 100644 --- a/modules/dashactivity/views/templates/hook/dashboard_zone_one.tpl +++ b/modules/dashactivity/views/templates/hook/dashboard_zone_one.tpl @@ -26,7 +26,7 @@
{l s='Recent Activity'} - + @@ -34,6 +34,9 @@
+
+
{l s='Configuration'}
+