mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-12 03:01:32 +00:00
resolved conflicts
This commit is contained in:
+15
@@ -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);
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user