web: account mouse-over links for inaccts: and inacctsonly:

This commit is contained in:
Simon Michael 2011-06-24 18:55:16 +00:00
parent efbea9d682
commit b10a52093a
3 changed files with 14 additions and 16 deletions

View File

@ -7,20 +7,12 @@ $(document).ready(function() {
if ($.url.param('add')) addformToggle();
else if ($.url.param('edit')) editformToggle();
/* set up hover handlers for sidebar account links */
$('.balancereport .account a').hover(displayMouseOver,hideMouseOver);
/* set up sidebar account mouse-over handlers */
$('.balancereport td.account').mouseenter(function(){ $(this).addClass('mouseover'); });
$('.balancereport td.account').mouseleave(function(){ $(this).removeClass('mouseover'); });
});
/* Display this element's *mouseover sibling */
function displayMouseOver(ev) {
$(getTarget(ev)).next().style.display = 'block';
}
/* Display this element's *mouseover sibling */
function hideMouseOver(ev) {
$(getTarget(ev)).next().style.display = 'none';
}
function searchformToggle() {
var a = document.getElementById('addform');
var e = document.getElementById('editform');

View File

@ -25,7 +25,11 @@ body { backgroun
.balancereport .inacct { background-color:#eee; font-weight:bold; }
.notinacct, .notinacct :link, .notinacct :visited, .notinacct .negative { /*color:#aaa;*/ }
.balancereport .numpostings { padding-left:1em; color:#aaa; }
.balancereport .accountmouseover { background-color:rgba(0,0,138,0.5); display:none; position:relative; }
.balancereport .accountextralinks { visibility:hidden; }
.balancereport td.account.mouseover { background-color:rgba(208,208,208,0.5); }
.balancereport td.account.mouseover .accountextralinks { visibility:visible; }
.balancereport .accountextralinks { margin-left:0em; font-weight:normal; font-size:smaller; display:inline-block; text-align:right; }
.balancereport .accountextralinks a { margin-left:0.5em; }
/*------------------------------------------------------------------------------------------*/
/* 2. font families & sizes */

View File

@ -2,9 +2,11 @@
<td.account.#{depthclass}
#{indent}
<a href="@?{accturl}">#{adisplay}
<div.accountmouseover
<a href="@?{acctsurl}">subs
<a href="@?{acctsonlyurl}">only
<span.accountextralinks
&nbsp;
<a href="@?{acctsurl}">+subs
&nbsp;
<a href="@?{acctsonlyurl}">-others
<td.balance align=right>#{mixedAmountAsHtml abal}
<td.numpostings align=right>(#{numpostingsinacct acct})