summaryrefslogtreecommitdiffstats
path: root/lib/toaster/toastergui/static/js/recipedetails.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/toaster/toastergui/static/js/recipedetails.js')
-rw-r--r--lib/toaster/toastergui/static/js/recipedetails.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/toaster/toastergui/static/js/recipedetails.js b/lib/toaster/toastergui/static/js/recipedetails.js
index d5f9eacdc..604db5f03 100644
--- a/lib/toaster/toastergui/static/js/recipedetails.js
+++ b/lib/toaster/toastergui/static/js/recipedetails.js
@@ -9,7 +9,8 @@ function recipeDetailsPageInit(ctx){
if (imgCustomModal.length === 0)
throw("Modal new-custom-image not found");
- imgCustomModal.data('recipe', $(this).data('recipe'));
+ var recipe = {id: $(this).data('recipe'), name: null}
+ newCustomImageModalSetRecipes([recipe]);
imgCustomModal.modal('show');
});