mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
stock entries button on product card (#1079)
This commit is contained in:
@@ -88,6 +88,8 @@ Grocy.Components.ProductCard.Refresh = function(productId)
|
||||
|
||||
$('#productcard-product-edit-button').attr("href", U("/product/" + productDetails.product.id.toString() + '?' + 'returnto=' + encodeURIComponent(Grocy.CurrentUrlRelative)));
|
||||
$('#productcard-product-journal-button').attr("href", U("/stockjournal?embedded&product=" + productDetails.product.id.toString()));
|
||||
$('#productcard-product-stock-button').attr("href", U("/stockentries?product=" + productDetails.product.id.toString()));
|
||||
$('#productcard-product-stock-button').removeClass("disabled");
|
||||
$('#productcard-product-edit-button').removeClass("disabled");
|
||||
$('#productcard-product-journal-button').removeClass("disabled");
|
||||
|
||||
|
Reference in New Issue
Block a user