mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
Fix some form validation problems (closes #36)
This commit is contained in:
@@ -44,6 +44,7 @@ $('#battery_id').on('change', function(e)
|
||||
{
|
||||
Grocy.Components.BatteryCard.Refresh(batteryId);
|
||||
$('#tracked_time').find('input').focus();
|
||||
Grocy.FrontendHelpers.ValidateForm('batterytracking-form');
|
||||
}
|
||||
});
|
||||
|
||||
|
@@ -43,6 +43,7 @@ $('#habit_id').on('change', function(e)
|
||||
{
|
||||
Grocy.Components.HabitCard.Refresh(habitId);
|
||||
Grocy.Components.DateTimePicker.GetInputElement().focus();
|
||||
Grocy.FrontendHelpers.ValidateForm('habittracking-form');
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user