Applied formatting rules for by #1000 changed files

This commit is contained in:
Bernd Bestel
2020-09-14 11:20:29 +02:00
parent 64c050fc0d
commit 4b5b7bcb19
7 changed files with 23 additions and 20 deletions

View File

@@ -12,9 +12,6 @@ Grocy.Components.DateTimePicker2.GetValue = function()
Grocy.Components.DateTimePicker2.SetValue = function(value)
{
Grocy.Components.DateTimePicker2.GetInputElement().val(value);
Grocy.Components.DateTimePicker2.GetInputElement().trigger('change');
// "Click" the shortcut checkbox when the desired value is
// not the shortcut value and it is currently set
var shortcutValue = $("#datetimepicker2-shortcut").data("datetimepicker2-shortcut-value");
@@ -23,6 +20,9 @@ Grocy.Components.DateTimePicker2.SetValue = function(value)
$("#datetimepicker2-shortcut").click();
}
Grocy.Components.DateTimePicker2.GetInputElement().val(value);
Grocy.Components.DateTimePicker2.GetInputElement().trigger('change');
Grocy.Components.DateTimePicker2.GetInputElement().keyup();
}

View File

@@ -33,7 +33,8 @@
{
jsonData.best_before_date = Grocy.Components.DateTimePicker.GetValue();
}
else {
else
{
jsonData.best_before_date = null;
}
@@ -106,7 +107,7 @@
{
Grocy.Components.LocationPicker.Clear();
}
if(Grocy.FeatureFlags.GROCY_FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING)
if (Grocy.FeatureFlags.GROCY_FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING)
{
Grocy.Components.DateTimePicker.Clear();
}