Added a filter for only done items on the /shoppinglist page (closes #1406)

This commit is contained in:
Bernd Bestel
2021-07-06 19:40:26 +02:00
parent 70d51c757b
commit 135ac118b0
4 changed files with 7 additions and 3 deletions

View File

@@ -361,11 +361,11 @@ $(document).on('click', '.order-listitem-button', function(e)
var statusInfoCell = $("#shoppinglistitem-" + listItemId + "-status-info");
if (done == 1)
{
statusInfoCell.text(statusInfoCell.text().replace("xxUNDONExx", ""));
statusInfoCell.text(statusInfoCell.text().replace("xxUNDONExx", "xxDONExx"));
}
else
{
statusInfoCell.text(statusInfoCell.text() + " xxUNDONExx");
statusInfoCell.text(statusInfoCell.text().replace("xxDONExx", "xxUNDONExx"));
}
shoppingListTable.rows().invalidate().draw(false);