Some refinements for #501

This commit is contained in:
Bernd Bestel
2020-01-21 20:45:34 +01:00
parent 3a36bdaf45
commit 0816359867
9 changed files with 52 additions and 55 deletions

View File

@@ -1,8 +1,4 @@
$(document).ready(function() {
Grocy.Components.ProductPicker.GetPicker().trigger('change');
} );
$('#save-recipe-button').on('click', function(e)
$('#save-recipe-button').on('click', function(e)
{
e.preventDefault();
@@ -351,15 +347,4 @@ $(window).on("message", function(e)
{
window.location.href = U('/recipe/' + Grocy.EditObjectId);
}
});
Grocy.Components.ProductPicker.GetPicker().on('change', function(e)
{
var productId = $(e.target).val();
if (productId)
{
Grocy.Components.ProductCard.Refresh(productId);
}
});