diff options
Diffstat (limited to 'UI')
-rw-r--r-- | UI/menu/expanding.css | 8 | ||||
-rw-r--r-- | UI/menu/expanding.html | 17 |
2 files changed, 22 insertions, 3 deletions
diff --git a/UI/menu/expanding.css b/UI/menu/expanding.css index 46461cff..b19670bd 100644 --- a/UI/menu/expanding.css +++ b/UI/menu/expanding.css @@ -1,3 +1,11 @@ div.submenu { display: none; } + +A.Menu::before { + content: '+'; +} + +A.Expanded::before { + content: '-'; +} diff --git a/UI/menu/expanding.html b/UI/menu/expanding.html index 77258ca8..2ea03149 100644 --- a/UI/menu/expanding.html +++ b/UI/menu/expanding.html @@ -15,7 +15,8 @@ <script type="text/javascript"> - function SwitchMenu(obj) { + function SwitchMenu(id) { + var obj = "sub_" + id; if (document.getElementById) { var element = document.getElementById(obj); @@ -25,6 +26,13 @@ } else { element.style.display = "block"; //display the block of info } + obj = 'a_' + id; + element = document.getElementById(obj); + if (element.className == 'Expanded'){ + element.className = 'Menu'; + } else { + element.className = 'Expanded'; + } return false; } } @@ -57,10 +65,13 @@ target = "main_window" <?lsmb END ?> <?lsmb IF item.menu ?> - onclick="return SwitchMenu('sub_<?lsmb item.id ?>')" + onclick="return SwitchMenu('<?lsmb item.id ?>')" <?lsmb END ?> - class = "<?lsmb IF item.module ?>Menu<?lsmb + class = "<?lsmb IF (item.menu && item.open) + ?>Expanded<?lsmb ELSIF item.menu + ?>Menu<?lsmb ELSE ?>Item<?lsmb END ?>" + id = "a_<?lsmb item.id ?>" ><?lsmb text(item.label) ?></a> </div> <?lsmb IF item.menu ?> |