aboutsummaryrefslogtreecommitdiff
path: root/views/default/navigation
diff options
context:
space:
mode:
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-26 18:12:12 +0000
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-26 18:12:12 +0000
commit851230155900124e2429e0f782ba4d8429bfe43a (patch)
tree73028ea24f7b32e35ff2df70aa3cf29083b3551f /views/default/navigation
parentd7b4f601a9d4a3595976ba6acae1ba527e11b9a9 (diff)
downloadelgg-851230155900124e2429e0f782ba4d8429bfe43a.tar.gz
elgg-851230155900124e2429e0f782ba4d8429bfe43a.tar.bz2
simple default theme as a starting point
git-svn-id: https://code.elgg.org/elgg/trunk@714 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/navigation')
-rw-r--r--views/default/navigation/toolbox.php18
1 files changed, 8 insertions, 10 deletions
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) {
?>
<li>
- <a href="<?php echo $subitem->value ?>"><?php echo $subitem->name; ?></a> |
+ <a href="<?php echo $subitem->value ?>"><?php echo $subitem->name; ?></a>
</li>
<?php
}
@@ -65,15 +65,13 @@
<script type="text/javascript">
$(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;
+ });
});
</script>