From be21479375dfac327ba0120432c3920e736018d3 Mon Sep 17 00:00:00 2001 From: einhverfr Date: Sat, 1 Sep 2007 04:50:01 +0000 Subject: Expanding menus now work again. git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1479 4979c152-3d1c-0410-bac9-87ea11338e46 --- UI/menu_expand.html | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'UI/menu_expand.html') diff --git a/UI/menu_expand.html b/UI/menu_expand.html index ed062033..86fd3011 100644 --- a/UI/menu_expand.html +++ b/UI/menu_expand.html @@ -7,6 +7,7 @@ + @@ -17,12 +18,14 @@ function SwitchMenu(obj) { if (document.getElementById) { var el = document.getElementById(obj); + + if (el.style.display == "block") { + el.style.display = "none"; - if (el.style.display == "none") { - el.style.display = "block"; //display the block of info } else { - el.style.display = "none"; + el.style.display = "block"; //display the block of info } + return false; } } @@ -47,8 +50,8 @@ ?>&" target = "main_window" - onclick="return SwitchMenu()" + onclick="return SwitchMenu('sub_')" class = "MenuItem" > -- cgit v1.2.3