mirror of
https://github.com/grocy/grocy.git
synced 2025-08-21 04:43:32 +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',
|
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)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user