diff --git a/fec/fec/static/js/modules/columns.js b/fec/fec/static/js/modules/columns.js index 009295756..0536ff30d 100644 --- a/fec/fec/static/js/modules/columns.js +++ b/fec/fec/static/js/modules/columns.js @@ -491,6 +491,7 @@ export const filings = { return reportType({ doc_description: doc_description, amendment_version: amendment_version, + large_pdf: row.pages >= 100000, fec_url: fec_url, pdf_url: pdf_url, csv_url: csv_url, diff --git a/fec/fec/static/js/modules/dropdowns.js b/fec/fec/static/js/modules/dropdowns.js index fa5221aa3..e13dfb253 100644 --- a/fec/fec/static/js/modules/dropdowns.js +++ b/fec/fec/static/js/modules/dropdowns.js @@ -110,7 +110,8 @@ Dropdown.prototype.handleFocusAway = function(e) { this.isOpen && !this.$panel.has($target).length && !this.$panel.is($target) && - !$target.is(this.$button) + !$target.is(this.$button) && + !this.$panel.has('p.dropdown-msg').length ) { this.hide(); } diff --git a/fec/fec/static/js/modules/tables.js b/fec/fec/static/js/modules/tables.js index 29927fcd3..4e2e1b486 100644 --- a/fec/fec/static/js/modules/tables.js +++ b/fec/fec/static/js/modules/tables.js @@ -247,6 +247,7 @@ export function modalRenderFactory(template, fetch) { // If the click target is a link, stop here. Don't toggle any rows if ($target.is('a')) return true; + if ($target.is('.dropdown-msg')) return true; // Hide any other open rows // For each row diff --git a/fec/fec/static/js/templates/reports/reportType.hbs b/fec/fec/static/js/templates/reports/reportType.hbs index 01bcb5645..ca6835458 100644 --- a/fec/fec/static/js/templates/reports/reportType.hbs +++ b/fec/fec/static/js/templates/reports/reportType.hbs @@ -30,7 +30,14 @@ {{/if}} {{#if pdf_url}}
+ .pdf not available for reports 100,000 pages or more. Request data at + efiletechsupport@fec.gov +
+ {{else}} + .pdf + {{/if}}