mirror of https://github.com/snachodog/mybuddy.git
Default to current time for diaper change and end field entries.
This commit is contained in:
parent
8f9a756fa2
commit
36847f0bd2
|
@ -42,6 +42,7 @@
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function () {
|
$(function () {
|
||||||
$('#id_time').datetimepicker({
|
$('#id_time').datetimepicker({
|
||||||
|
defaultDate: 'now',
|
||||||
format: 'YYYY-MM-DD HH:mm'
|
format: 'YYYY-MM-DD HH:mm'
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -46,6 +46,7 @@
|
||||||
useCurrent: false
|
useCurrent: false
|
||||||
});
|
});
|
||||||
$('#id_end').datetimepicker({
|
$('#id_end').datetimepicker({
|
||||||
|
defaultDate: 'now',
|
||||||
format: 'YYYY-MM-DD HH:mm'
|
format: 'YYYY-MM-DD HH:mm'
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -46,6 +46,7 @@
|
||||||
useCurrent: false
|
useCurrent: false
|
||||||
});
|
});
|
||||||
$('#id_end').datetimepicker({
|
$('#id_end').datetimepicker({
|
||||||
|
defaultDate: 'now',
|
||||||
format: 'YYYY-MM-DD HH:mm'
|
format: 'YYYY-MM-DD HH:mm'
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -46,6 +46,7 @@
|
||||||
useCurrent: false
|
useCurrent: false
|
||||||
});
|
});
|
||||||
$('#id_end').datetimepicker({
|
$('#id_end').datetimepicker({
|
||||||
|
defaultDate: 'now',
|
||||||
format: 'YYYY-MM-DD HH:mm:ss'
|
format: 'YYYY-MM-DD HH:mm:ss'
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue