diff --git a/public/app/js/main/controllers/BalanceCtrl.js b/public/app/js/main/controllers/BalanceCtrl.js index 3fe6d705..43f56c6b 100644 --- a/public/app/js/main/controllers/BalanceCtrl.js +++ b/public/app/js/main/controllers/BalanceCtrl.js @@ -23,7 +23,19 @@ app.controller( 'BalanceCtrl', }; $scope.toolTipContentFunction = function() { return function( key, x, y, e, graph ) { - return $filter( 'json' )( $scope.balance.details[ key ] ); + //return $filter( 'json' )( $scope.balance.details[ key ] ); + var details = $scope.balance.details[ key ]; + return '

' + details.key + '

' + + '' + + _(details.values).map( function( transaction ) { + return ''; + }).join( '' ) + + '
DatePayeeAmount
' + + transaction.date + '' + + transaction.payee + '' + + transaction.amount + ' ' + + transaction.currency + '
'; + }; };