mirror of
https://github.com/grocy/grocy.git
synced 2025-08-19 03:40:10 +00:00
Added a button to jump to the journal on the product/chore/battery card
This commit is contained in:
@@ -71,7 +71,9 @@ 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?product=" + productDetails.product.id.toString()));
|
||||
$('#productcard-product-edit-button').removeClass("disabled");
|
||||
$('#productcard-product-journal-button').removeClass("disabled");
|
||||
|
||||
if (productDetails.last_price !== null)
|
||||
{
|
||||
|
Reference in New Issue
Block a user