mirror of https://github.com/snachodog/mybuddy.git
Update method select for when formula types selected (#127)
This commit is contained in:
parent
4978208d7f
commit
dce0cd1e10
|
@ -35,5 +35,11 @@
|
|||
defaultDate: false
|
||||
});
|
||||
BabyBuddy.DatetimePicker.init($('#datetimepicker_end'));
|
||||
$('#id_type').change(function() {
|
||||
var feed_type=$('#id_type').val();
|
||||
if (feed_type=='formula'||feed_type=='fortified breast milk') {
|
||||
$('#id_method').val('bottle');
|
||||
}
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in New Issue