mirror of
https://github.com/grocy/grocy.git
synced 2025-08-21 04:43:32 +00:00
Make it possible to disable open per product (closes #1911)
This commit is contained in:
@@ -359,6 +359,11 @@ function RefreshProductRow(productId)
|
||||
$(".product-consume-button[data-product-id='" + productId + "']").removeClass("disabled");
|
||||
$(".product-open-button[data-product-id='" + productId + "']").removeClass("disabled");
|
||||
}
|
||||
|
||||
if (result.product.disable_open == 1)
|
||||
{
|
||||
$(".product-open-button[data-product-id='" + productId + "']").addClass("disabled");
|
||||
}
|
||||
}
|
||||
|
||||
$('#product-' + productId + '-next-due-date').text(result.next_due_date);
|
||||
|
Reference in New Issue
Block a user