mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 09:39:57 +00:00
Fixed that the recipe page was reloaded when expanding a collapsed row on mobile (fixes #589)
This commit is contained in:
parent
e2bb3a7d00
commit
5cfe7cf34d
@ -22,6 +22,7 @@ If you run grocy in a subdirectory, you need to set a new `config.php` setting (
|
||||
- Fixed that nested recipes showed all ingredients of the nested recipes twice
|
||||
- Fixed that when displaying or consuming a recipe from the meal plan the serving amount was maybe wrong (was the one from the recipe instead the one from the meal plan entry) (thanks @kriddles)
|
||||
- Fixed that the stock fulfillment counts on the recipe card were maybe wrong if that recipe was also added to the meal plan (thanks @kriddles)
|
||||
- Fixed that the recipe page was reloaded when expanding a collapsed row on mobile (thanks @Mikhail5555)
|
||||
|
||||
### 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
|
||||
|
@ -208,7 +208,11 @@ recipesTables.on('select', function(e, dt, type, indexes)
|
||||
if (type === 'row')
|
||||
{
|
||||
var selectedRecipeId = $(recipesTables.row(indexes[0]).node()).data("recipe-id");
|
||||
window.location.href = U('/recipes?recipe=' + selectedRecipeId.toString());
|
||||
var currentRecipeId = location.search.split('recipe=')[1];
|
||||
if (selectedRecipeId.toString() !== currentRecipeId)
|
||||
{
|
||||
window.location.href = U('/recipes?recipe=' + selectedRecipeId.toString());
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user