aboutsummaryrefslogtreecommitdiff
path: root/views/default/navigation
diff options
context:
space:
mode:
authorpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-07 18:45:33 +0000
committerpete <pete@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-07 18:45:33 +0000
commitded72ce1e792a9fb8e1a17725aacff8abf0034a8 (patch)
tree95e8510979d934342493486857bb7c4b6e58d075 /views/default/navigation
parentdf9f793c7a9a226bfad89db98aaeb35fd13e1ac3 (diff)
downloadelgg-ded72ce1e792a9fb8e1a17725aacff8abf0034a8.tar.gz
elgg-ded72ce1e792a9fb8e1a17725aacff8abf0034a8.tar.bz2
new toolbar menu
git-svn-id: https://code.elgg.org/elgg/trunk@634 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default/navigation')
-rw-r--r--views/default/navigation/toolbox.php26
1 files changed, 21 insertions, 5 deletions
diff --git a/views/default/navigation/toolbox.php b/views/default/navigation/toolbox.php
index f8fb2ae9d..549efc5ad 100644
--- a/views/default/navigation/toolbox.php
+++ b/views/default/navigation/toolbox.php
@@ -19,8 +19,8 @@
if (is_array($menu) && sizeof($menu) > 0) {
?>
- <div id="sidebar_toolbox">
-<ul>
+<div class="elggtoolbar">
+<ul class="drawers">
<?php
@@ -28,8 +28,8 @@
?>
- <li>
- <h2><?php echo $item->name ?></h2>
+ <li class="drawer">
+ <h2 class="drawer-handle"><?php echo $item->name ?></h2>
<?php
if (sizeof($item->children) > 0 ) {
@@ -61,4 +61,20 @@
}
-?> \ No newline at end of file
+?>
+
+<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();
+ });
+});
+</script>
+
+