Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id C916AE00CF3; Mon, 4 Jul 2016 06:31:28 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [192.55.52.93 listed in list.dnswl.org] Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 91F36E00D05 for ; Mon, 4 Jul 2016 06:31:16 -0700 (PDT) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP; 04 Jul 2016 06:31:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,574,1459839600"; d="scan'208";a="133603829" Received: from irsmsx105.ger.corp.intel.com ([163.33.3.28]) by fmsmga004.fm.intel.com with ESMTP; 04 Jul 2016 06:31:16 -0700 Received: from irsmsx110.ger.corp.intel.com ([169.254.15.97]) by irsmsx105.ger.corp.intel.com ([169.254.7.51]) with mapi id 14.03.0248.002; Mon, 4 Jul 2016 14:31:13 +0100 From: "Barros Pena, Belen" To: "Wood, Michael G" , "toaster@yoctoproject.org" Thread-Topic: [Toaster] [PATCH] toaster: layerBtn avoid connecting handler to other build buttons Thread-Index: AQHR1fhVHFplabadIk60u4i8OXR4XQ== Date: Mon, 4 Jul 2016 13:31:13 +0000 Message-ID: References: <1467307166-18467-1-git-send-email-michael.g.wood@intel.com> In-Reply-To: <1467307166-18467-1-git-send-email-michael.g.wood@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.6.5.160527 x-originating-ip: [10.252.9.233] MIME-Version: 1.0 Subject: Re: [PATCH] toaster: layerBtn avoid connecting handler to other build buttons X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jul 2016 13:31:28 -0000 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-ID: <1EB03E729A323441A056D8231BCDC33C@intel.com> Content-Transfer-Encoding: quoted-printable On 30/06/2016 18:19, "toaster-bounces@yoctoproject.org on behalf of Michael Wood" 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.=20 Thanks! Bel=E9n > >Signed-off-by: Michael Wood >--- > 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() { > }); > }); >=20 >- $(".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 =3D $(this).data('recipe-name'); >=20 >--=20 >2.7.4 > >--=20 >_______________________________________________ >toaster mailing list >toaster@yoctoproject.org >https://lists.yoctoproject.org/listinfo/toaster