mirror of
https://github.com/grocy/grocy.git
synced 2025-08-17 11:06:36 +00:00
Always navigate back to the previous page after saving a product (closes #364)
This commit is contained in:
@@ -66,7 +66,7 @@ Grocy.Components.ProductCard.Refresh = function(productId)
|
||||
$('#productcard-product-stock-opened-amount').text("");
|
||||
}
|
||||
|
||||
$('#productcard-product-edit-button').attr("href", U("/product/" + productDetails.product.id.toString()));
|
||||
$('#productcard-product-edit-button').attr("href", U("/product/" + productDetails.product.id.toString() + '?' + 'returnto=' + encodeURIComponent(Grocy.CurrentUrlRelative)));
|
||||
$('#productcard-product-edit-button').removeClass("disabled");
|
||||
|
||||
if (productDetails.last_price !== null)
|
||||
|
Reference in New Issue
Block a user