Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 4C719E00922; Fri, 27 Mar 2015 08:50:15 -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: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.212.182 listed in list.dnswl.org] Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com [209.85.212.182]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 008ECE00906 for ; Fri, 27 Mar 2015 08:50:13 -0700 (PDT) Received: by wixm2 with SMTP id m2so37532335wix.0 for ; Fri, 27 Mar 2015 08:50:12 -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; bh=maIEseKHVmRE91Gk5rLKYrhl0kpn7RaHXohVMWIfOC0=; b=DB3pZEwYYSkcYnO1fmIRMNpk/E/7p7q4dZ3APtwrk1At96EjqGfWctIy+XRg/qDt1V tEmP1moeQOWvtKLZFd2lyNdafHcxjxqymJIDrEuGrt8N5oKlNb+cOMDFE47z+va9R5c5 yt6tdxkrzKLCIms8Lt577lpcO+PEIORcMEymmmeglkpg2oJmYYVSM4vKkkLav+xdBTZL l2L18V+XsQlYPVEimOkbxJfmtbzwxg8GsAgMcWQ9v2gy91zFoVNvnIo7JgtvD/UgAeI5 4n7Zk/EQuWrHrtDoZ1cQmGVBf0CSYubPP6XA7itMOaUpDiz5hHMPfYmBpjKKlza89ofB NCZA== X-Gm-Message-State: ALoCoQlwVWH0M1GzjFaJrRsbAjW9R5OIZe+r+FruABtbTmizLsM1rGUbSocdFimycOsIdyKIidcp X-Received: by 10.194.23.39 with SMTP id j7mr39828087wjf.9.1427471412397; Fri, 27 Mar 2015 08:50:12 -0700 (PDT) Received: from draco.icx.intel.com ([83.217.123.106]) by mx.google.com with ESMTPSA id ga8sm3367906wib.11.2015.03.27.08.50.11 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 27 Mar 2015 08:50:11 -0700 (PDT) From: Michael Wood To: toaster@yoctoproject.org Date: Fri, 27 Mar 2015 15:49:54 +0000 Message-Id: <1427471395-10007-1-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.1.0 Subject: [review-request][PATCH 1/2] bitbake: toaster: BuildButton target input allow building targets with tasks 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: Fri, 27 Mar 2015 15:50:15 -0000 Allow the input for targets to contain tasks in the form target:task [YOCTO #7501] Signed-off-by: Michael Wood --- bitbake/lib/toaster/toastergui/static/js/base.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/static/js/base.js b/bitbake/lib/toaster/toastergui/static/js/base.js index 777ab43..f57e4d9 100644 --- a/bitbake/lib/toaster/toastergui/static/js/base.js +++ b/bitbake/lib/toaster/toastergui/static/js/base.js @@ -88,10 +88,9 @@ function basePageInit (ctx) { if (!newBuildTargetInput.val()) return; - if (!selectedTarget) - selectedTarget = { name: newBuildTargetInput.val() }; + var selectedTargetName = newBuildTargetInput.val(); /* fire and forget */ - libtoaster.startABuild(ctx.projectBuildUrl, ctx.projectId, selectedTarget.name, null, null); + libtoaster.startABuild(ctx.projectBuildUrl, ctx.projectId, selectedTargetName, null, null); window.location.replace(ctx.projectPageUrl+ctx.projectId); }); -- 2.1.0