Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id CB6C4E01144; Thu, 8 Oct 2015 11:32:48 -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,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.212.169 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com [209.85.212.169]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id D45FFE00FC2 for ; Thu, 8 Oct 2015 11:32:42 -0700 (PDT) Received: by wicge5 with SMTP id ge5so38012051wic.0 for ; Thu, 08 Oct 2015 11:32:41 -0700 (PDT) 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:in-reply-to :references; bh=or1gSM3xwbOCsbArGLk2XvZn6Zi3g/12XrzfJo4ouyc=; b=VqaYBcIJnMmdGa7rPSfmidoxoPYsRb+AyAYLeOfSxvqKaQCW41bpmSELxnevEv6AZu Z2PsQLrz1t7SyxncpT4WJh7smNqxcDdaVBXaDXFMghDZZNPtV1/xiYqOyPadyCzif6zE jW+FDZ+fzboOC9PFRLch4YgeCI78AZDWaw7kOVjcVbcgimcdi07cbJLPgfRS1Cjb2Gu6 +D0T3dPXi0X2LgUWmslqc2jL6CKHriUZRdeMQeua5KUn48URjQ4zlEDoZO3DAnlhREQS 4eakEWxYHQ/AR9NXQUUD171REaxF1peTvbJDfAvLukWxHovsfczwBKb+opKjhjd63xmI XOOg== X-Gm-Message-State: ALoCoQkw0gSxsVKolfYRsZZnbkcxmQCkNiUsgybSeDCxcrpORqURSSc6UNlosA2vdW0s6xBWaxti X-Received: by 10.180.8.68 with SMTP id p4mr5919453wia.16.1444329161353; Thu, 08 Oct 2015 11:32:41 -0700 (PDT) Received: from dorado.Home ([2.218.205.118]) by smtp.gmail.com with ESMTPSA id x9sm47729394wjf.44.2015.10.08.11.32.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 08 Oct 2015 11:32:40 -0700 (PDT) From: Michael Wood To: toaster@yoctoproject.org Date: Thu, 8 Oct 2015 19:32:33 +0100 Message-Id: <1444329157-11590-2-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1444329157-11590-1-git-send-email-michael.g.wood@intel.com> References: <1444329157-11590-1-git-send-email-michael.g.wood@intel.com> Subject: [PATCH 1/5] toaster: layerdetails update build recipe button class name 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, 08 Oct 2015 18:32:48 -0000 Update the class name which we are using for the recipe build button. This fixes a regression in the buttons being enabled/disabled when adding and removing the layer being viewed from the project. Signed-off-by: Michael Wood --- bitbake/lib/toaster/toastergui/static/js/layerdetails.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/static/js/layerdetails.js b/bitbake/lib/toaster/toastergui/static/js/layerdetails.js index 8817b47..8c2ec4c 100644 --- a/bitbake/lib/toaster/toastergui/static/js/layerdetails.js +++ b/bitbake/lib/toaster/toastergui/static/js/layerdetails.js @@ -254,7 +254,7 @@ function layerDetailsPageInit (ctx) { if (added){ /* enable and switch all the button states */ - $(".build-target-btn").removeAttr("disabled"); + $(".build-recipe-btn").removeAttr("disabled"); $(".select-machine-btn").removeAttr("disabled"); addRmLayerBtn.addClass("btn-danger"); addRmLayerBtn.data('directive', "remove"); @@ -263,7 +263,7 @@ function layerDetailsPageInit (ctx) { } else { /* disable and switch all the button states */ - $(".build-target-btn").attr("disabled","disabled"); + $(".build-recipe-btn").attr("disabled","disabled"); $(".select-machine-btn").attr("disabled", "disabled"); addRmLayerBtn.removeClass("btn-danger"); addRmLayerBtn.data('directive', "add"); -- 2.1.4