JS corrections in ChillPersonBundle required by ESLint

This commit is contained in:
2024-11-12 15:38:46 +01:00
parent dd854ea339
commit 22ecb11227
15 changed files with 32 additions and 41 deletions

View File

@@ -16,7 +16,7 @@ window.addEventListener('DOMContentLoaded', function() {
load_event: null,
froms: [entitySelector],
container: [personContainer],
test: function(froms, event) {
test: function(froms) {
for (let container of froms) {
return container.querySelector('input[value="person"]').checked;
}
@@ -30,7 +30,7 @@ window.addEventListener('DOMContentLoaded', function() {
load_event: null,
froms: [entitySelector],
container: [thirdpartyContainer],
test: function(froms, event) {
test: function(froms) {
for (let container of froms) {
return container.querySelector('input[value="thirdparty"]').checked;
}
@@ -44,7 +44,7 @@ window.addEventListener('DOMContentLoaded', function() {
load_event: null,
froms: [entitySelector],
container: [freetextContainer],
test: function(froms, event) {
test: function(froms) {
for (let container of froms) {
return container.querySelector('input[value="freetext"]').checked;
}