summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/static/js/layerBtn.js
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2015-09-28 21:45:24 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-29 14:11:37 +0100
commitd98c771a9aa047a71a30b570aba544c043d05447 (patch)
tree2fdcddd23547a1a6cea72cb9ed7e576f4d8a5c5e /bitbake/lib/toaster/toastergui/static/js/layerBtn.js
parent37948cc5d0e9274a2ca0ec70a5b4788fa26e55e5 (diff)
downloadpoky-d98c771a9aa047a71a30b570aba544c043d05447.tar.gz
bitbake: toaster: Add Image customisation frontend feature
Add the Image customisation front end feature to Toaster. Caveat - This feature is currently in development and should not be enabled by default. (Bitbake rev: 543586462b66434741f47f2884b4ccdeda5397b5) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: brian avery <avery.brian@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/static/js/layerBtn.js')
-rw-r--r--bitbake/lib/toaster/toastergui/static/js/layerBtn.js13
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){