diff options
Diffstat (limited to 'views/default/navigation')
-rw-r--r-- | views/default/navigation/toolbox.php | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/views/default/navigation/toolbox.php b/views/default/navigation/toolbox.php index 6ee04f00b..91a96d1fb 100644 --- a/views/default/navigation/toolbox.php +++ b/views/default/navigation/toolbox.php @@ -25,13 +25,14 @@ <ul class="drawers"> <?php - +
+ $key = 0; foreach($menu as $item) { ?> <li class="drawer"> - <h2 class="drawer-handle"><?php echo $item->name ?></h2> + <h2 id="nav_<?php echo $contexts[$key]; ?>" class="drawer-handle"><?php echo $item->name ?></h2> <?php if (sizeof($item->children) > 0 ) { @@ -50,7 +51,8 @@ ?> </li> -<?php +<?php
+ $key++; } @@ -62,7 +64,21 @@ <?php } - +
+ if (in_array(get_context(),$contexts)) {
+ $key = array_search(get_context(),$contexts); ?> +<script language="javascript">
+ $(document).ready(function(){
+ $('h2#nav_<?php echo $contexts[$key]; ?>').click();
+ });
+</script>
+
+
+<?php
+
+ }
+
+?>
\ No newline at end of file |