mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Fix merge conflict in show-hide file
This commit is contained in:
commit
50bd9f32c3
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user