Skip to content

Commit

Permalink
Merge pull request #3012 from fecgov/feature/specify-election-full
Browse files Browse the repository at this point in the history
Specify 2-year totals explicitly
  • Loading branch information
patphongs authored Jul 19, 2019
2 parents 94ab8f6 + 236f69b commit f83b933
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fec/data/templates/partials/committee/spending.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<div class="heading--section heading--with-action">
<h3 class="heading__left">Communication costs</h3>
<a class="heading__right button--alt button--browse"
href="/data/communication_costs/?committee_id={{ committee_id }}&min_date={{ cycle_start(cycle) | date(fmt='%m-%d-%Y') }}&max_date={{ cycle_end(cycle) | date(fmt='%m-%d-%Y') }}">Filter this data
href="/data/communication-costs/?committee_id={{ committee_id }}&min_date={{ cycle_start(cycle) | date(fmt='%m-%d-%Y') }}&max_date={{ cycle_end(cycle) | date(fmt='%m-%d-%Y') }}">Filter this data
</a>
</div>
<table class="data-table data-table--heading-borders data-table--entity u-margin--top" data-type="communication-cost-committee" data-committee="{{ committee_id }}" data-cycle="{{ cycle }}">
Expand Down
3 changes: 3 additions & 0 deletions fec/fec/static/js/pages/candidate-single.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ var mapUrl = helpers.buildUrl(
{
candidate_id: $map.data('candidate-id'),
cycle: $map.data('cycle'),
election_full: false,
per_page: 99
}
);
Expand Down Expand Up @@ -501,6 +502,7 @@ function initContributionsTables() {
query: {
candidate_id: opts.candidate_id,
cycle: opts.cycle,
election_full: false,
sort_hide_null: false,
per_page: 99
},
Expand Down Expand Up @@ -546,6 +548,7 @@ function initContributionsTables() {
query: {
candidate_id: opts.candidate_id,
cycle: opts.cycle,
election_full: false,
sort: 'size'
},
columns: [
Expand Down
3 changes: 2 additions & 1 deletion fec/fec/static/js/pages/committee-single.js
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,8 @@ $(document).ready(function() {
var committeeId = $table.attr('data-committee');
var cycle = $table.attr('data-cycle');
var query = {
cycle: cycle
cycle: cycle,
election_full: false
};
var path;
var opts;
Expand Down

0 comments on commit f83b933

Please sign in to comment.