diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/static/js/layerBtn.js')
-rw-r--r-- | bitbake/lib/toaster/toastergui/static/js/layerBtn.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/layerBtn.js b/bitbake/lib/toaster/toastergui/static/js/layerBtn.js index a0509f9aa3..da0241c62b 100644 --- a/bitbake/lib/toaster/toastergui/static/js/layerBtn.js +++ b/bitbake/lib/toaster/toastergui/static/js/layerBtn.js | |||
@@ -68,6 +68,19 @@ function layerBtnsInit(ctx) { | |||
68 | }); | 68 | }); |
69 | }); | 69 | }); |
70 | 70 | ||
71 | |||
72 | $(".customise-btn").unbind('click'); | ||
73 | $(".customise-btn").click(function(e){ | ||
74 | e.preventDefault(); | ||
75 | var imgCustomModal = $("#new-custom-image-modal"); | ||
76 | |||
77 | if (imgCustomModal.length == 0) | ||
78 | throw("Modal new-custom-image not found"); | ||
79 | |||
80 | imgCustomModal.data('recipe', $(this).data('recipe')); | ||
81 | imgCustomModal.modal('show'); | ||
82 | }); | ||
83 | |||
71 | /* Setup the initial state of the buttons */ | 84 | /* Setup the initial state of the buttons */ |
72 | 85 | ||
73 | for (var i in ctx.projectLayers){ | 86 | for (var i in ctx.projectLayers){ |