mirror of
https://github.com/grocy/grocy.git
synced 2026-04-06 21:06:15 +02:00
recipeform reload if IngredientsChanged
This commit is contained in:
parent
d94e52316c
commit
fbc563c92e
|
|
@ -336,3 +336,14 @@ $('#delete-current-recipe-picture-button').on('click', function (e)
|
||||||
});
|
});
|
||||||
|
|
||||||
Grocy.Components.UserfieldsForm.Load();
|
Grocy.Components.UserfieldsForm.Load();
|
||||||
|
|
||||||
|
$(window).on("message", function(e)
|
||||||
|
{
|
||||||
|
var data = e.originalEvent.data;
|
||||||
|
|
||||||
|
if (data.Message === "IngredientsChanged")
|
||||||
|
{
|
||||||
|
window.location.reload(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user