Merge branch 'main' into pages

merging
This commit is contained in:
Frank Knoll
2024-07-16 13:18:56 +02:00
3 changed files with 3 additions and 1 deletions

View File

@@ -42,6 +42,7 @@
document.addEventListener(
"DOMContentLoaded",
event => {
// FK-TODO: add PDF button
BatchCodeSelectInitializer.initialize(
{
batchCodeSelectElement: $('#batchCodeSelect'),

View File

@@ -52,6 +52,6 @@ class PageInitializer {
'click',
() => PdfCreator
.createPdf({ symptom, vaccine, heading, valueName })
.open());
.download(heading));
}
}

View File

@@ -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();