mirror of
https://github.com/grocy/grocy.git
synced 2025-10-15 17:58:32 +00:00
Fix scrolling to top of page when dynamically removing a table row (fixes #57)
This commit is contained in:
@@ -27,6 +27,8 @@ $("#search").on("keyup", function()
|
||||
|
||||
$(document).on('click', '.shoppinglist-delete-button', function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
|
||||
var shoppingListItemId = $(e.currentTarget).attr('data-shoppinglist-id');
|
||||
|
||||
Grocy.Api.Get('delete-object/shopping_list/' + shoppingListItemId,
|
||||
|
Reference in New Issue
Block a user