Fixed/optimized shopping list invalidation when removing table rows (fixes #2608)

This commit is contained in:
Bernd Bestel
2024-12-23 17:31:22 +01:00
parent cd25284d35
commit 9a319a6ee0
2 changed files with 2 additions and 1 deletions

View File

@@ -23,6 +23,7 @@
### Shopping list
- Fixed that when printing a shoppping list the table/list wasn't sorted (will now be sorted alphabetically by the product name of the corresponding list item)
- Fixed that when deleting a shopping list item and marking another one as done while not reloading the page in-between, the deleted item reappeared (was only a visual problem, there was no problem on deleting the item on the backend / in the database)
### Recipes

View File

@@ -132,7 +132,7 @@ $(document).on('click', '.shoppinglist-delete-button', function(e)
animateCSS("#shoppinglistitem-" + shoppingListItemId + "-row", "fadeOut", function()
{
Grocy.FrontendHelpers.EndUiBusy();
$("#shoppinglistitem-" + shoppingListItemId + "-row").remove();
$("#shoppinglistitem-" + shoppingListItemId + "-row").addClass("d-none").remove();
OnListItemRemoved();
});
},