recipeform reload if IngredientsChanged

This commit is contained in:
Kurt Riddlesperger 2019-12-20 12:50:37 -06:00
parent d94e52316c
commit fbc563c92e

View File

@ -336,3 +336,14 @@ $('#delete-current-recipe-picture-button').on('click', function (e)
});
Grocy.Components.UserfieldsForm.Load();
$(window).on("message", function(e)
{
var data = e.originalEvent.data;
if (data.Message === "IngredientsChanged")
{
window.location.reload(true);
}
});