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(); if ($.url.param('add')) addformToggle();
else if ($.url.param('edit')) editformToggle(); else if ($.url.param('edit')) editformToggle();
/* set up hover handlers for sidebar account links */ /* set up sidebar account mouse-over handlers */
$('.balancereport .account a').hover(displayMouseOver,hideMouseOver); $('.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() { function searchformToggle() {
var a = document.getElementById('addform'); var a = document.getElementById('addform');
var e = document.getElementById('editform'); var e = document.getElementById('editform');

View File

@ -25,7 +25,11 @@ body { backgroun
.balancereport .inacct { background-color:#eee; font-weight:bold; } .balancereport .inacct { background-color:#eee; font-weight:bold; }
.notinacct, .notinacct :link, .notinacct :visited, .notinacct .negative { /*color:#aaa;*/ } .notinacct, .notinacct :link, .notinacct :visited, .notinacct .negative { /*color:#aaa;*/ }
.balancereport .numpostings { padding-left:1em; 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 */ /* 2. font families & sizes */

View File

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