mirror of
https://github.com/grocy/grocy.git
synced 2025-04-30 10:05:45 +00:00
Reload shopping list page on list clearing
This commit is contained in:
parent
580f49e69f
commit
b4a7642af5
@ -223,12 +223,7 @@ $(document).on('click', '#clear-shopping-list', function(e)
|
|||||||
Grocy.Api.Post('stock/shoppinglist/clear', { "list_id": $("#selected-shopping-list").val() },
|
Grocy.Api.Post('stock/shoppinglist/clear', { "list_id": $("#selected-shopping-list").val() },
|
||||||
function(result)
|
function(result)
|
||||||
{
|
{
|
||||||
animateCSS("#shoppinglist-table tbody tr", "fadeOut", function()
|
window.location.reload();
|
||||||
{
|
|
||||||
Grocy.FrontendHelpers.EndUiBusy();
|
|
||||||
$("#shoppinglist-table tbody tr").remove();
|
|
||||||
OnListItemRemoved();
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
function(xhr)
|
function(xhr)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user