mirror of
https://github.com/grocy/grocy.git
synced 2025-08-18 03:25:50 +00:00
Optionally show out of stock products on the location content sheet (closes #1641)
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user