summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/static/js
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2016-07-04 16:34:45 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-08 09:57:27 +0100
commit5018d5f095ab4ab2ddd2ba164566d39d4578ce05 (patch)
treebee3c42ea2132a5dbaf4edb79f1aa6c58c836e82 /bitbake/lib/toaster/toastergui/static/js
parent9d730f4747a3ec2af4929af57bedcfa203179b57 (diff)
downloadpoky-5018d5f095ab4ab2ddd2ba164566d39d4578ce05.tar.gz
bitbake: toaster: layerBtn avoid connecting handler to other build buttons
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] (Bitbake rev: ec083fd943c6996307beb3be3421403870d2f2b7) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/static/js')
-rw-r--r--bitbake/lib/toaster/toastergui/static/js/layerBtn.js4
1 files 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 259271df33..9f9eda1e1e 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() {
55 }); 55 });
56 }); 56 });
57 57
58 $(".build-recipe-btn").unbind('click'); 58 $("td .build-recipe-btn").unbind('click');
59 $(".build-recipe-btn").click(function(e){ 59 $("td .build-recipe-btn").click(function(e){
60 e.preventDefault(); 60 e.preventDefault();
61 var recipe = $(this).data('recipe-name'); 61 var recipe = $(this).data('recipe-name');
62 62