From 4d386146712d915fc9b6346f7cb31621db903e37 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Mon, 24 Aug 2020 18:02:46 +0200 Subject: [PATCH] Reload recipe page after add/edit an ingredient (fixes #803) --- public/viewjs/recipeform.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/viewjs/recipeform.js b/public/viewjs/recipeform.js index e9da2674..9b2bac7f 100644 --- a/public/viewjs/recipeform.js +++ b/public/viewjs/recipeform.js @@ -366,7 +366,7 @@ $(window).on("message", function(e) Grocy.Api.Put('objects/recipes/' + Grocy.EditObjectId, $('#recipe-form').serializeJSON(), function(result) { - // window.location.href = U('/recipe/' + Grocy.EditObjectId); + window.location.href = U('/recipe/' + Grocy.EditObjectId); }, function(xhr) {