updated streamline-setup v2

This commit is contained in:
2025-01-15 08:53:49 -08:00
committed by alec.turner
parent a2ce9248f0
commit 4b569f81b0
20228 changed files with 2932048 additions and 63204 deletions
@@ -0,0 +1,15 @@
// family planning methods select2
$('#family_planning_methods').select2();
$('#family_planning_methods').click(function(){
if($('#family_planning_methods option:selected').length > 0) {
$('#date_discontinued_div, #why_stop_family_planning_div').show();
$('.date_discontinued, #why_stop_family_planning').addClass('compulsory');
$('.date_discontinued, #why_stop_family_planning').prop('required', true);
}
else {
$('#date_discontinued_div, #why_stop_family_planning_div').hide();
$('.date_discontinued, #why_stop_family_planning').removeClass('compulsory');
$('.date_discontinued, #why_stop_family_planning').prop('required', false);
}
});