Show the product card also on /products (closes #2185)

This commit is contained in:
Bernd Bestel
2023-04-13 20:36:21 +02:00
parent 16011b91c6
commit 84bd74a1bc
6 changed files with 30 additions and 5 deletions

View File

@@ -176,3 +176,9 @@ $("#merge-products-save-button").on("click", function(e)
}
);
});
$(document).on("click", ".product-name-cell", function(e)
{
Grocy.Components.ProductCard.Refresh($(e.currentTarget).attr("data-product-id"));
$("#productcard-modal").modal("show");
});