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