From 851230155900124e2429e0f782ba4d8429bfe43a Mon Sep 17 00:00:00 2001 From: pete Date: Mon, 26 May 2008 18:12:12 +0000 Subject: simple default theme as a starting point git-svn-id: https://code.elgg.org/elgg/trunk@714 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/navigation/toolbox.php | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'views/default/navigation/toolbox.php') diff --git a/views/default/navigation/toolbox.php b/views/default/navigation/toolbox.php index 549efc5ad..2a96d34b2 100644 --- a/views/default/navigation/toolbox.php +++ b/views/default/navigation/toolbox.php @@ -37,7 +37,7 @@ foreach($item->children as $subitem) { ?>
  • - name; ?> | + name; ?>
  • $(document).ready(function () { - $('li.drawer ul:not(:first)').hide(); // hide all ULs inside LI.drawer except the first one - $('h2.drawer-handle').click(function () { - // hide all the drawer contents - $('li.drawer ul:visible').slideUp().prev().removeClass('open'); - // show the associated drawer content to 'this' (this is the current H2 element) - // since the drawer content is the next element after the clicked H2, we find - // it and show it using this: - $(this).addClass('open').next().slideDown(); - }); + $('li.drawer ul:not(:first)').hide(); + + $('h2.drawer-handle').click(function () { + $('li.drawer ul:visible').slideUp('medium').prev().removeClass('open'); + $(this).addClass('open').next().slideDown('fast'); + return false; + }); }); -- cgit v1.2.3