This commit is contained in:
Frank Knoll
2024-07-17 10:45:40 +02:00
parent 4103b34855
commit 4cc193f312
3 changed files with 5 additions and 6 deletions

View File

@@ -49,6 +49,7 @@
document.addEventListener(
"DOMContentLoaded",
event => {
// FK-TODO: inline variable
const name = 'Drug';
PageInitializer.initializePage(
{
@@ -62,8 +63,7 @@
vaccineSelectElement: $('#vaccineSelect'),
urlSearchParam: new URLSearchParam('vaccine'),
prrBySymptomTableElement: $('#prrBySymptomTable'),
downloadPrrBySymptomTableButton: document.querySelector("#downloadPrrBySymptomTable"),
valueName: name
// FK-TODO: remove downloadPrrBySymptomTable html element
},
pdf: {
pdfButton: document.querySelector("#PDF"),

View File

@@ -32,8 +32,7 @@ class PageInitializer {
return prrByVaccineTableView;
}
// FK-TODO: remove downloadPrrBySymptomTableButton, valueName
static #configureVaccine({ vaccineSelectElement, urlSearchParam, prrBySymptomTableElement, downloadPrrBySymptomTableButton, valueName }) {
static #configureVaccine({ vaccineSelectElement, urlSearchParam, prrBySymptomTableElement }) {
const prrBySymptomTableView = new PrrBySymptomTableView(prrBySymptomTableElement);
Select2.initializeSelectElement(
{

View File

@@ -49,6 +49,7 @@
document.addEventListener(
"DOMContentLoaded",
event => {
// FK-TODO: inline name
const name = 'Vaccine';
PageInitializer.initializePage(
{
@@ -62,8 +63,7 @@
vaccineSelectElement: $('#vaccineSelect'),
urlSearchParam: new URLSearchParam('vaccine'),
prrBySymptomTableElement: $('#prrBySymptomTable'),
downloadPrrBySymptomTableButton: document.querySelector("#downloadPrrBySymptomTable"),
valueName: name
// FK-TODO: remove downloadPrrBySymptomTable html element
},
pdf: {
pdfButton: document.querySelector("#PDF"),