mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
Finished the implementation of "Location Content Sheet" (closes #341)
This commit is contained in:
14
public/viewjs/locationcontentsheet.js
Normal file
14
public/viewjs/locationcontentsheet.js
Normal 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();
|
||||
});
|
Reference in New Issue
Block a user