mirror of
https://github.com/grocy/grocy.git
synced 2026-03-28 07:39:25 +01:00
Also clear the shopping list without reloading the whole page
This commit is contained in:
parent
b7f0b06684
commit
48ca0f2ac7
|
|
@ -75,7 +75,10 @@ $(document).on('click', '#clear-shopping-list', function(e)
|
|||
Grocy.Api.Get('stock/clear-shopping-list',
|
||||
function(result)
|
||||
{
|
||||
window.location.href = U('/shoppinglist');
|
||||
$('#shoppinglist-table tbody tr').fadeOut(500, function()
|
||||
{
|
||||
$(this).remove();
|
||||
});
|
||||
},
|
||||
function(xhr)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user