Skip to content
This repository has been archived by the owner on Dec 23, 2017. It is now read-only.

Commit

Permalink
Link to itemized transactions from election summary table.
Browse files Browse the repository at this point in the history
[Resolves #449]
  • Loading branch information
jmcarp committed Sep 9, 2015
1 parent 5524961 commit 0816717
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions static/js/pages/elections.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,24 @@ var electionColumns = [
},
{data: 'incumbent_challenge_full', className: 'min-tablet'},
{data: 'party_full', className: 'min-tablet'},
tables.barCurrencyColumn({data: 'total_receipts'}),
tables.barCurrencyColumn({data: 'total_disbursements'}),
{
data: 'total_receipts',
render: tables.buildTotalLink('/receipts', function(data, type, row, meta) {
return {
committee_id: row.committee_ids,
cycle: context.election.cycle
};
})
},
{
data: 'total_disbursements',
render: tables.buildTotalLink('/disbursements', function(data, type, row, meta) {
return {
committee_id: row.committee_ids,
cycle: context.election.cycle
};
})
},
tables.barCurrencyColumn({data: 'cash_on_hand_end_period'}),
tables.urlColumn('pdf_url', {data: 'document_description', className: 'all', orderable: false})
];
Expand Down

0 comments on commit 0816717

Please sign in to comment.