mirror of
https://github.com/grocy/grocy.git
synced 2025-04-30 18:12:44 +00:00
Changelog & small changes for #554
This commit is contained in:
parent
2c0f7f0883
commit
540ae2627a
@ -19,6 +19,7 @@
|
|||||||
### Meal plan improvements
|
### Meal plan improvements
|
||||||
- Improved that all add-dialogs can be submitted by using `ENTER` and that the next input is automatically selected after selecting a recipe/product
|
- Improved that all add-dialogs can be submitted by using `ENTER` and that the next input is automatically selected after selecting a recipe/product
|
||||||
- Added an edit button to all types of meal plan entries
|
- Added an edit button to all types of meal plan entries
|
||||||
|
- When adding a recipe, the serving amount is now prefilled with the one of the selected recipe (thanks @kriddles)
|
||||||
- Fixed that the meal plan not used the full height on mobile devices
|
- Fixed that the meal plan not used the full height on mobile devices
|
||||||
|
|
||||||
### Calendar fixes
|
### Calendar fixes
|
||||||
|
@ -283,7 +283,6 @@ $(document).on("click", ".add-recipe-button", function(e)
|
|||||||
|
|
||||||
$("#add-recipe-modal-title").text(__t("Add recipe to %s", day.toString()));
|
$("#add-recipe-modal-title").text(__t("Add recipe to %s", day.toString()));
|
||||||
$("#day").val(day.toString());
|
$("#day").val(day.toString());
|
||||||
$("#recipe_servings").val(1);
|
|
||||||
Grocy.Components.RecipePicker.Clear();
|
Grocy.Components.RecipePicker.Clear();
|
||||||
$("#add-recipe-modal").modal("show");
|
$("#add-recipe-modal").modal("show");
|
||||||
Grocy.FrontendHelpers.ValidateForm("add-recipe-form");
|
Grocy.FrontendHelpers.ValidateForm("add-recipe-form");
|
||||||
@ -777,17 +776,12 @@ Grocy.Components.RecipePicker.GetPicker().on('change', function(e)
|
|||||||
|
|
||||||
if (recipeId)
|
if (recipeId)
|
||||||
{
|
{
|
||||||
// Does not work (clears the RecipePicker) when done immediately, don't know why...
|
|
||||||
setTimeout(function()
|
|
||||||
{
|
|
||||||
$("#recipe_servings").focus();
|
|
||||||
$("#recipe_servings").select();
|
|
||||||
}, 200);
|
|
||||||
|
|
||||||
Grocy.Api.Get('objects/recipes/' + recipeId,
|
Grocy.Api.Get('objects/recipes/' + recipeId,
|
||||||
function(recipe)
|
function(recipe)
|
||||||
{
|
{
|
||||||
$("#recipe_servings").val(recipe.base_servings);
|
$("#recipe_servings").val(recipe.base_servings);
|
||||||
|
$("#recipe_servings").focus();
|
||||||
|
$("#recipe_servings").select();
|
||||||
},
|
},
|
||||||
function(xhr)
|
function(xhr)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user