diff --git a/src/Bundle/ChillMainBundle/Resources/public/page/workflow-show/index.js b/src/Bundle/ChillMainBundle/Resources/public/page/workflow-show/index.js index 5afb6fcd8..dc1dc9643 100644 --- a/src/Bundle/ChillMainBundle/Resources/public/page/workflow-show/index.js +++ b/src/Bundle/ChillMainBundle/Resources/public/page/workflow-show/index.js @@ -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) {