mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-11 18:51:31 +00:00
15 lines
705 B
JavaScript
Executable File
Vendored
15 lines
705 B
JavaScript
Executable File
Vendored
// 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);
|
|
}
|
|
}); |