[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb: [1537] trunk/UI/menu
- Subject: SF.net SVN: ledger-smb: [1537] trunk/UI/menu
- From: ..hidden..
- Date: Fri, 07 Sep 2007 15:49:42 -0700
Revision: 1537
http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=1537&view=rev
Author: einhverfr
Date: 2007-09-07 15:49:42 -0700 (Fri, 07 Sep 2007)
Log Message:
-----------
Minor menu revisions
Modified Paths:
--------------
trunk/UI/menu/expanding.css
trunk/UI/menu/expanding.html
Modified: trunk/UI/menu/expanding.css
===================================================================
--- trunk/UI/menu/expanding.css 2007-09-07 21:11:41 UTC (rev 1536)
+++ trunk/UI/menu/expanding.css 2007-09-07 22:49:42 UTC (rev 1537)
@@ -1,3 +1,11 @@
div.submenu {
display: none;
}
+
+A.Menu::before {
+ content: '+';
+}
+
+A.Expanded::before {
+ content: '-';
+}
Modified: trunk/UI/menu/expanding.html
===================================================================
--- trunk/UI/menu/expanding.html 2007-09-07 21:11:41 UTC (rev 1536)
+++ trunk/UI/menu/expanding.html 2007-09-07 22:49:42 UTC (rev 1537)
@@ -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 ?>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.