summaryrefslogtreecommitdiff
path: root/UI/menu
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-09-07 22:49:42 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-09-07 22:49:42 +0000
commit71eae324748107fbcdd116b88ec0da8b76a62280 (patch)
tree9413b98858e8878111ec07f1d51413724ccb45e6 /UI/menu
parentb7f5fa4dcb610b04ef142d9367ffd93e4d697c8e (diff)
Minor menu revisions
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1537 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'UI/menu')
-rw-r--r--UI/menu/expanding.css8
-rw-r--r--UI/menu/expanding.html17
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 ?>