[Toaster] [PATCH] toaster: layerBtn avoid connecting handler to other build buttons
Barros Pena, Belen
belen.barros.pena at intel.com
Mon Jul 4 06:31:13 PDT 2016
On 30/06/2016 18:19, "toaster-bounces at yoctoproject.org on behalf of
Michael Wood" <toaster-bounces at yoctoproject.org on behalf of
michael.g.wood at intel.com> wrote:
>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]
This works for me.
Thanks!
Belén
>
>Signed-off-by: Michael Wood <michael.g.wood at intel.com>
>---
> 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
>toaster at yoctoproject.org
>https://lists.yoctoproject.org/listinfo/toaster
More information about the toaster
mailing list