mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
Added a filter for only done items on the /shoppinglist page (closes #1406)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user