mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
Also clear the shopping list without reloading the whole page
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user