diff --git a/src/main/resources/org/biouno/unochoice/ChoiceParameter/index.jelly b/src/main/resources/org/biouno/unochoice/ChoiceParameter/index.jelly index 3b54641a..41c5de35 100644 --- a/src/main/resources/org/biouno/unochoice/ChoiceParameter/index.jelly +++ b/src/main/resources/org/biouno/unochoice/ChoiceParameter/index.jelly @@ -2,9 +2,8 @@ ${it.parameters.clear()} - + + + + diff --git a/src/main/resources/org/biouno/unochoice/ChoiceParameter/render-choice-parameter.js b/src/main/resources/org/biouno/unochoice/ChoiceParameter/render-choice-parameter.js new file mode 100644 index 00000000..323d6b97 --- /dev/null +++ b/src/main/resources/org/biouno/unochoice/ChoiceParameter/render-choice-parameter.js @@ -0,0 +1,6 @@ +window.addEventListener("DOMContentLoaded", () => { + document.querySelectorAll(".choice-parameter-data-holder").forEach((dataHolder) => { + const { paramName, filterLength } = dataHolder.dataset; + UnoChoice.renderChoiceParameter(paramName, filterLength); + }); +});