Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id B5B8EE00EBC; Thu, 30 Jun 2016 10:19:33 -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=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.220.50 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from mail-pa0-f50.google.com (mail-pa0-f50.google.com [209.85.220.50]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 332CEE00D8C for ; Thu, 30 Jun 2016 10:19:32 -0700 (PDT) Received: by mail-pa0-f50.google.com with SMTP id b13so30220253pat.0 for ; Thu, 30 Jun 2016 10:19:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=nU2yRRS2crA9MFM4v4cWI/SVOephu/om/OjRmmzYyD8=; b=VRxCRV8F25Pna9T7YGKHT7A3vSzqWlXB0G6KSGNYTH9CuL7BAVrtVvGyIomXDsQXGH th1G7BxAFSD3v7v7jFwWy8GjxiePGZ9kb0f2k6AYmhIG3rP2PNatAon45Mula2Ss/RBE yFM3A28jLW2bDJb+lN6H/9b3HtnQzmz5i75Z3/Yfnf4ksaktTVaKa2hizh/Iord1pF9r Qq7mo2J0uQlQOT/6hArBM54lJxt9Br4jiZu7ji6EYNNjDJveyo9itJqMrFaYDD06H/va fydZYWiNsRcleQLaT2nkkTwro+z/OwDsOhKtepny4Qz9xqds6Ux0v7WFljFGaKBRP3sj PfCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=nU2yRRS2crA9MFM4v4cWI/SVOephu/om/OjRmmzYyD8=; b=VtdT1gcorvQ14hz/GbHC50yZ6W8ynqPsQwd+8qZGe1o1J6BqDyLfzY1TXFJKzzm8Bu MmRpRPYk47cFkHY7EP1/9QL2ho1aIxeBlIzRcocGpzi48Zp78gjlSqxKHQ86QkpHOjl+ F5vkfiao7wD4Ojwr4Gb1iD0zaMVy406qE+OSAeXEMWG020g+3AAnoBayw6/SmgfdT5Cn aJtMbYP6zH5QH/b6xEIFEfqRoJSyyMjdYJJ8z82rPnBvtdk0QCCOpE+iZyjuJpdxIu1+ +vnVRb8wJxrR2BlhWCJQrDzj8660AwcRY1ZSJ77+YmprH23oN3y30JEh4tVGPbN5v7vU Treg== X-Gm-Message-State: ALyK8tI7lH1faSP+RNjhZLwanZZK1CLcbYMuVkDWtioTukaJk278DTnXAyEg/MAYm+TtMsWO X-Received: by 10.66.97.104 with SMTP id dz8mr23354904pab.22.1467307172151; Thu, 30 Jun 2016 10:19:32 -0700 (PDT) Received: from orion.ger.corp.intel.com ([192.55.55.41]) by smtp.gmail.com with ESMTPSA id bw1sm7244459pab.17.2016.06.30.10.19.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 30 Jun 2016 10:19:31 -0700 (PDT) From: Michael Wood To: toaster@yoctoproject.org Date: Thu, 30 Jun 2016 18:19:26 +0100 Message-Id: <1467307166-18467-1-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.7.4 Subject: [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: Thu, 30 Jun 2016 17:19:33 -0000 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] 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() { }); }); - $(".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