diff --git a/docs/HowBadIsMyBatch.html b/docs/HowBadIsMyBatch.html index 9a146825aec..2c8089db29d 100644 --- a/docs/HowBadIsMyBatch.html +++ b/docs/HowBadIsMyBatch.html @@ -42,6 +42,7 @@ document.addEventListener( "DOMContentLoaded", event => { + // FK-TODO: add PDF button BatchCodeSelectInitializer.initialize( { batchCodeSelectElement: $('#batchCodeSelect'), diff --git a/docs/SymptomsCausedByDrugs/js/PageInitializer.js b/docs/SymptomsCausedByDrugs/js/PageInitializer.js index b35b612e462..160f3c38ed9 100644 --- a/docs/SymptomsCausedByDrugs/js/PageInitializer.js +++ b/docs/SymptomsCausedByDrugs/js/PageInitializer.js @@ -52,6 +52,6 @@ class PageInitializer { 'click', () => PdfCreator .createPdf({ symptom, vaccine, heading, valueName }) - .open()); + .download(heading)); } } diff --git a/docs/SymptomsCausedByDrugs/js/PdfCreator.js b/docs/SymptomsCausedByDrugs/js/PdfCreator.js index 43f4d42cba2..d5b49090611 100644 --- a/docs/SymptomsCausedByDrugs/js/PdfCreator.js +++ b/docs/SymptomsCausedByDrugs/js/PdfCreator.js @@ -49,6 +49,7 @@ class PdfCreator { return selectElement.select2('data')[0].text; } + // FK-TODO: add red background to some rows static #getTable(table) { const headers = PdfCreator.#getTableHeaders(table); const rows = table.rows({ search: 'applied' }).data().toArray();