mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
Added an option to filter for only undone items on the shopping list (closes #452)
This commit is contained in:
@@ -282,6 +282,20 @@ $(document).on('click', '.order-listitem-button', function(e)
|
||||
console.error(xhr);
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
var statusInfoCell = $("#shoppinglistitem-" + listItemId + "-status-info");
|
||||
if (done == 1)
|
||||
{
|
||||
statusInfoCell.text(statusInfoCell.text().replace("xxUNDONExx", ""));
|
||||
}
|
||||
else
|
||||
{
|
||||
statusInfoCell.text(statusInfoCell.text() + " xxUNDONExx");
|
||||
}
|
||||
shoppingListTable.rows().invalidate().draw(false);
|
||||
|
||||
$("#status-filter").trigger("change");
|
||||
});
|
||||
|
||||
function OnListItemRemoved()
|
||||
|
Reference in New Issue
Block a user