resolved conflicts

This commit is contained in:
2025-03-31 03:46:05 +03:00
6454 changed files with 1520539 additions and 9 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);
}
});