mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
Fixed/optimized shopping list invalidation when removing table rows (fixes #2608)
This commit is contained in:
@@ -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
|
||||
|
||||
|
@@ -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();
|
||||
});
|
||||
},
|
||||
|
Reference in New Issue
Block a user