diff --git a/hledger-web/.hledger/web/static/hledger.js b/hledger-web/.hledger/web/static/hledger.js index da5f1394e..febc5cdec 100644 --- a/hledger-web/.hledger/web/static/hledger.js +++ b/hledger-web/.hledger/web/static/hledger.js @@ -7,8 +7,20 @@ $(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); }); +/* 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'); diff --git a/hledger-web/.hledger/web/static/style.css b/hledger-web/.hledger/web/static/style.css index 97d552dd6..e8a320abd 100644 --- a/hledger-web/.hledger/web/static/style.css +++ b/hledger-web/.hledger/web/static/style.css @@ -25,6 +25,7 @@ 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; } /*------------------------------------------------------------------------------------------*/ /* 2. font families & sizes */ diff --git a/hledger-web/.hledger/web/templates/balancereportitem.hamlet b/hledger-web/.hledger/web/templates/balancereportitem.hamlet index 968d22400..9753bd2e0 100644 --- a/hledger-web/.hledger/web/templates/balancereportitem.hamlet +++ b/hledger-web/.hledger/web/templates/balancereportitem.hamlet @@ -2,5 +2,9 @@