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>
This commit is contained in:
parent
9d730f4747
commit
5018d5f095
|
@ -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');
|
||||
|
||||
|
|
Loading…
Reference in New Issue