Added an option to print a shopping list (references #245)

This commit is contained in:
Bernd Bestel
2019-09-20 17:40:45 +02:00
parent 292b652437
commit 5a91c86b81
3 changed files with 59 additions and 13 deletions

View File

@@ -303,3 +303,9 @@ function OnListItemRemoved()
}
}
OnListItemRemoved();
$(document).on("click", "#print-shopping-list-button", function(e)
{
$(".print-timestamp").text(moment().format("l LT"));
window.print();
});