mirror of
https://github.com/grocy/grocy.git
synced 2026-04-03 19:36:16 +02: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',
|
Grocy.Api.Get('stock/clear-shopping-list',
|
||||||
function(result)
|
function(result)
|
||||||
{
|
{
|
||||||
window.location.href = U('/shoppinglist');
|
$('#shoppinglist-table tbody tr').fadeOut(500, function()
|
||||||
|
{
|
||||||
|
$(this).remove();
|
||||||
|
});
|
||||||
},
|
},
|
||||||
function(xhr)
|
function(xhr)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user