diff options
author | Michael Wood <michael.g.wood@intel.com> | 2016-07-04 16:34:45 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-07-08 09:57:27 +0100 |
commit | 5018d5f095ab4ab2ddd2ba164566d39d4578ce05 (patch) | |
tree | bee3c42ea2132a5dbaf4edb79f1aa6c58c836e82 /bitbake | |
parent | 9d730f4747a3ec2af4929af57bedcfa203179b57 (diff) | |
download | poky-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')
-rw-r--r-- | bitbake/lib/toaster/toastergui/static/js/layerBtn.js | 4 |
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 | ||