From 3351f0022eb42096fd766e82e9e91d34aaae8fa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Dr=C3=B6scher?= Date: Sat, 10 Mar 2007 16:26:53 +0000 Subject: Before I forget ... grr git-svn-id: file:///svn/phpbb/trunk@7166 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/adm/style/admin.css | 4 ++++ phpBB/adm/style/overall_header.html | 39 ++++++++++++++++++++++++++++++++++++- 2 files changed, 42 insertions(+), 1 deletion(-) diff --git a/phpBB/adm/style/admin.css b/phpBB/adm/style/admin.css index 61da31005b..6fd38039ef 100644 --- a/phpBB/adm/style/admin.css +++ b/phpBB/adm/style/admin.css @@ -270,6 +270,10 @@ span.corners-top span, span.corners-bottom span { /* Sub-navigation Menu ---------------------------------------- */ +#toggle { + display: none; +} + #menu { float: left; width: 20%; diff --git a/phpBB/adm/style/overall_header.html b/phpBB/adm/style/overall_header.html index a80fa4c78d..f160adb4cf 100644 --- a/phpBB/adm/style/overall_header.html +++ b/phpBB/adm/style/overall_header.html @@ -18,6 +18,9 @@ var on_page = '{ON_PAGE}'; var per_page = '{PER_PAGE}'; var base_url = '{BASE_URL}'; +var menu_state = 'shown'; + + /** * Jump to page */ @@ -109,11 +112,43 @@ function swatch(field) return false; } +/** +* Hiding/Showing the side menu +*/ +function switch_menu() +{ + var menu = document.getElementById('menu'); + var main = document.getElementById('main'); + var toggle = document.getElementById('toggle'); + var handle = document.getElementById('toggle_handle'); + + switch(menu_state) + { + //hide + case 'shown': + main.style.width = 'auto'; + menu.style.display = 'none'; + menu_state = 'hidden'; + toggle.style.left = '0'; + toggle.style.width = '20px'; + break; + //show + case 'hidden': + main.style.width = '76%'; + menu.style.display = 'block'; + menu_state = 'shown'; + toggle.style.left = '15%'; + toggle.style.width = '5%' + break; + } +} + //--> +