Workaround for datepicker problem (fixes #100)

This commit is contained in:
Bernd Bestel
2018-10-27 17:56:53 +02:00
parent 364f6b2051
commit 89553b7fa0
3 changed files with 62 additions and 41 deletions

View File

@@ -50,7 +50,7 @@
{
$('#amount').val(0);
$('#price').val('');
Grocy.Components.DateTimePicker.SetValue('');
Grocy.Components.DateTimePicker.Clear();
Grocy.Components.ProductPicker.SetValue('');
Grocy.Components.ProductPicker.GetInputElement().focus();
Grocy.FrontendHelpers.ValidateForm('purchase-form');