Finished the implementation of "Location Content Sheet" (closes #341)

This commit is contained in:
Bernd Bestel
2019-08-11 09:24:47 +02:00
parent 28716ed96c
commit 7004cf4400
5 changed files with 72 additions and 10 deletions

View File

@@ -0,0 +1,14 @@
$(document).on("click", ".print-all-locations-button", function(e)
{
$(".page").removeClass("d-print-none").removeClass("no-page-break");
$(".print-timestamp").text(moment().format("l LT"));
window.print();
});
$(document).on("click", ".print-single-location-button", function(e)
{
$(".page").addClass("d-print-none");
$(e.currentTarget).closest(".page").removeClass("d-print-none").addClass("no-page-break");
$(".print-timestamp").text(moment().format("l LT"));
window.print();
});