diff --git a/CHANGES.md b/CHANGES.md index c1d03e31..7605f4a9 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -5,7 +5,7 @@ The following changes are not yet released, but are code complete: Features: - - None yet + - Adds a warning to let users know that combined PDFs won't be uploaded to the RECAP Archive([#337](https://github.com/freelawproject/recap/issues/337), [#341](https://github.com/freelawproject/recap-chrome/pull/341)) Changes: - None yet diff --git a/src/appellate/appellate.js b/src/appellate/appellate.js index c52d89d7..cdd09cc2 100644 --- a/src/appellate/appellate.js +++ b/src/appellate/appellate.js @@ -32,6 +32,9 @@ AppellateDelegate.prototype.dispatchPageHandler = function () { case 'CaseQuery.jsp': this.handleCaseQueryPage(); break; + case 'ShowDocMulti': + this.handleCombinedPdfPageView(); + break default: if (APPELLATE.isAttachmentPage()) { this.handleAttachmentPage(); @@ -386,6 +389,11 @@ AppellateDelegate.prototype.handleAttachmentPage = async function () { ); }; +AppellateDelegate.prototype.handleCombinedPdfPageView = async function () { + let warning = combinedPdfWarning() + document.body.appendChild(warning) +}; + // If this page offers a single document, intercept navigation to the document view page. AppellateDelegate.prototype.handleSingleDocumentPageView = async function () { overwriteFormSubmitMethod(); diff --git a/src/content.js b/src/content.js index c1474b64..3ab29260 100644 --- a/src/content.js +++ b/src/content.js @@ -77,6 +77,10 @@ async function addRecapInformation(msg) { // creates a