[Toaster] [PATCH] toaster: layerBtn avoid connecting handler to other build buttons
Smith, Elliot
elliot.smith at intel.com
Mon Jul 4 08:36:54 PDT 2016
On 4 July 2016 at 14:31, Barros Pena, Belen <belen.barros.pena at intel.com>
wrote:
>
>
> 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.
>
Upstreamed to bitbake-devel and pushed to toaster-next.
Thanks.
Elliot
> >
> >[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
>
> --
> _______________________________________________
> toaster mailing list
> toaster at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/toaster
>
--
Elliot Smith
Software Engineer
Intel Open Source Technology Centre
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/toaster/attachments/20160704/ad96c368/attachment-0001.html>
More information about the toaster
mailing list