diff --git a/docs/source/development/user-interface/js-functions/show_hide.js b/docs/source/development/user-interface/js-functions/show_hide.js index 5e6b66eb8..ee752ae28 100644 --- a/docs/source/development/user-interface/js-functions/show_hide.js +++ b/docs/source/development/user-interface/js-functions/show_hide.js @@ -1,16 +1,16 @@ import { ShowHide } from 'ShowHide/show_hide.js'; -var +var div_accompagnement = document.getElementById("form_accompagnement"), div_accompagnement_comment = document.getElementById("form_accompagnement_comment"), div_caf_id = document.getElementById("cafId"), - div_caf_inscription_date = document.getElementById("cafInscriptionDate"), + div_caf_inscription_date = document.getElementById("cafInscriptionDate") ; // let show/hide the div_accompagnement_comment if the input with value `'autre'` is checked new ShowHide({ "froms": [div_accompagnement], - "test": function(froms, event) { + "test": function(froms, event) { for (let el of froms.values()) { for (let input of el.querySelectorAll('input').values()) { if (input.value === 'autre') { @@ -18,13 +18,13 @@ new ShowHide({ } } } - + return false; }, "container": [div_accompagnement_comment] }); -// let show the date input only if the the id is filled +// let show the date input only if the the id is filled new ShowHide({ froms: [ div_caf_id ], test: function(froms, event) { diff --git a/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/SocialIssuesAcc.vue b/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/SocialIssuesAcc.vue index a3bcea765..b276672ab 100644 --- a/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/SocialIssuesAcc.vue +++ b/src/Bundle/ChillActivityBundle/Resources/public/vuejs/Activity/components/SocialIssuesAcc.vue @@ -54,14 +54,15 @@