Optionally show out of stock products on the location content sheet (closes #1641)

This commit is contained in:
Bernd Bestel
2022-04-01 21:55:06 +02:00
parent ebfc55064e
commit f7c33a4579
6 changed files with 42 additions and 3 deletions

View File

@@ -12,3 +12,18 @@ $(document).on("click", ".print-single-location-button", function(e)
$(".print-timestamp").text(moment().format("l LT"));
window.print();
});
$("#include-out-of-stock").change(function()
{
if (this.checked)
{
RemoveUriParam("include_out_of_stock");
}
else
{
UpdateUriParam("include_out_of_stock", true);
}
window.location.reload();
});