Fix merge conflict in show-hide file

This commit is contained in:
Julie Lenaerts 2024-07-23 16:23:51 +02:00
commit 50bd9f32c3

View File

@ -14,7 +14,8 @@ window.addEventListener('DOMContentLoaded', function() {
transitionsContainer = document.querySelector('#transitions')
;
new ShowHide({
// ShowHide instance for personSignatureField
new ShowHide({
debug: false,
froms: [signatureTypeChoices],
container: [personSignatureField],
@ -90,26 +91,26 @@ window.addEventListener('DOMContentLoaded', function() {
});
if (null !== divTransitions) {
new ShowHide({
load_event: null,
froms: [divTransitions],
container: [futureDestUsersContainer],
test: function(divs, arg2, arg3) {
for (let div of divs) {
for (let input of div.querySelectorAll('input')) {
if (input.checked) {
if (input.dataset.toFinal === "1") {
return false;
} else {
return true;
}
}
}
}
new ShowHide({
load_event: null,
froms: [divTransitions],
container: [futureDestUsersContainer],
test: function(divs, arg2, arg3) {
for (let div of divs) {
for (let input of div.querySelectorAll('input')) {
if (input.checked) {
if (input.dataset.toFinal === "1") {
return false;
} else {
return true;
}
}
}
}
return true;
},
});
return true;
},
});
}
if (null !== transitionFilterContainer) {