mirror of
https://github.com/grocy/grocy.git
synced 2025-08-16 18:54:35 +00:00
Make the meal plan entry day editable (closes #775)
This commit is contained in:
@@ -25,8 +25,7 @@ Grocy.Components.DateTimePicker.SetValue = function(value, inputElement = Grocy.
|
||||
|
||||
Grocy.Components.DateTimePicker.Clear = function()
|
||||
{
|
||||
$(".datetimepicker").datetimepicker("destroy");
|
||||
Grocy.Components.DateTimePicker.Init();
|
||||
Grocy.Components.DateTimePicker.Init(true);
|
||||
|
||||
Grocy.Components.DateTimePicker.GetInputElement().val("");
|
||||
|
||||
@@ -74,8 +73,13 @@ if (Grocy.Components.DateTimePicker.GetInputElement().data('limit-end-to-now') =
|
||||
limitDate = moment();
|
||||
}
|
||||
|
||||
Grocy.Components.DateTimePicker.Init = function()
|
||||
Grocy.Components.DateTimePicker.Init = function(reInit = false)
|
||||
{
|
||||
if (reInit)
|
||||
{
|
||||
$(".datetimepicker").datetimepicker("destroy");
|
||||
}
|
||||
|
||||
$(".datetimepicker").each(function()
|
||||
{
|
||||
$(this).datetimepicker(
|
||||
|
Reference in New Issue
Block a user