summaryrefslogtreecommitdiffstats
path: root/lib/toaster/toastergui/static/js/layerBtn.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/toaster/toastergui/static/js/layerBtn.js')
-rw-r--r--lib/toaster/toastergui/static/js/layerBtn.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/toaster/toastergui/static/js/layerBtn.js b/lib/toaster/toastergui/static/js/layerBtn.js
index aa4328439..259271df3 100644
--- a/lib/toaster/toastergui/static/js/layerBtn.js
+++ b/lib/toaster/toastergui/static/js/layerBtn.js
@@ -76,7 +76,8 @@ function layerBtnsInit() {
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');
});
}