Also clear the shopping list without reloading the whole page

This commit is contained in:
Bernd Bestel
2018-08-11 14:16:11 +02:00
parent b7f0b06684
commit 48ca0f2ac7

View File

@@ -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)
{