mirror of https://github.com/snachodog/mybuddy.git
Selecting one of the breast feeding methods will auto select breast milk as the type
This commit is contained in:
parent
2dfb2993ca
commit
fc8b230928
|
@ -43,5 +43,11 @@
|
|||
$('#id_method').val('bottle');
|
||||
}
|
||||
});
|
||||
$('#id_method').change(function() {
|
||||
var method = $('#id_method').val();
|
||||
if (['left breast', 'right breast', 'both breasts'].includes(method)) {
|
||||
$('#id_type').val('breast milk');
|
||||
}
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in New Issue