Skip to content

Commit

Permalink
feat(appellate): Adds the new button for filers to the single doc page
Browse files Browse the repository at this point in the history
  • Loading branch information
ERosendo committed Jan 24, 2024
1 parent a99e47d commit 2bcf559
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/appellate/appellate.js
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,20 @@ AppellateDelegate.prototype.handleCombinedPdfPageView = async function () {

// If this page offers a single document, intercept navigation to the document view page.
AppellateDelegate.prototype.handleSingleDocumentPageView = async function () {
overwriteFormSubmitMethod();
if (PACER.hasFilingCookie(document.cookie)) {
let button = createRecapButtonForFilers('Accept Charges and RECAP Document');
button.addEventListener('click', (event) => {
event.preventDefault();
let form = event.target.parentNode;
form.id = 'form' + new Date().getTime();
window.postMessage({ id: form.id }, '*');
});

let form = document.querySelector('form');
form.append(button);
} else {
overwriteFormSubmitMethod();
}

this.pacer_case_id = await APPELLATE.getCaseId(this.tabId, this.queryParameters, this.docId);

Expand Down

0 comments on commit 2bcf559

Please sign in to comment.