Little refinements for #507

This commit is contained in:
Bernd Bestel
2020-01-22 21:17:04 +01:00
parent ef9f28d154
commit ec2551d263
2 changed files with 15 additions and 6 deletions

View File

@@ -368,3 +368,9 @@ Grocy.Components.RecipePicker.GetPicker().on('change', function (e)
}
);
});
Grocy.Components.ProductPicker.GetPicker().on('change', function(e)
{
// Just save the current recipe on every change of the product picker as a workflow could be started which leaves the page...
Grocy.Api.Put('objects/recipes/' + Grocy.EditObjectId, $('#recipe-form').serializeJSON(), function () { }, function () { });
});