Some pages contain other build buttons which may have the same class attached. Make sure that we only select the buttons in the tables where layerBtn is used.
[YOCTO #9841] Signed-off-by: Michael Wood <[email protected]> --- bitbake/lib/toaster/toastergui/static/js/layerBtn.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/static/js/layerBtn.js b/bitbake/lib/toaster/toastergui/static/js/layerBtn.js index 259271d..9f9eda1 100644 --- a/bitbake/lib/toaster/toastergui/static/js/layerBtn.js +++ b/bitbake/lib/toaster/toastergui/static/js/layerBtn.js @@ -55,8 +55,8 @@ function layerBtnsInit() { }); }); - $(".build-recipe-btn").unbind('click'); - $(".build-recipe-btn").click(function(e){ + $("td .build-recipe-btn").unbind('click'); + $("td .build-recipe-btn").click(function(e){ e.preventDefault(); var recipe = $(this).data('recipe-name'); -- 2.7.4 -- _______________________________________________ toaster mailing list [email protected] https://lists.yoctoproject.org/listinfo/toaster
