Make it possible to track a chore execution without the time part, only the day

This commit is contained in:
Bernd Bestel
2019-05-04 16:13:05 +02:00
parent 98fcd767b3
commit 9ef55f1f01
10 changed files with 112 additions and 42 deletions

View File

@@ -43,6 +43,13 @@ Grocy.Components.DateTimePicker.Clear = function()
$('#datetimepicker-timeago').text('');
}
Grocy.Components.DateTimePicker.ChangeFormat = function(format)
{
$(".datetimepicker").datetimepicker("destroy");
Grocy.Components.DateTimePicker.GetInputElement().data("format", format);
Grocy.Components.DateTimePicker.Init();
}
var startDate = null;
if (Grocy.Components.DateTimePicker.GetInputElement().data('init-with-now') === true)
{