From 0405ef3816d2e3c965d6eb5f25067f53a99c6d2f Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Fri, 27 Mar 2015 15:49:54 +0000 Subject: [PATCH] bitbake: toaster: BuildButton target input allow building targets with tasks Allow the input for targets to contain tasks in the form target:task [YOCTO #7501] (Bitbake rev: cf7d0418ff2d4aec508c7942f96e9b52a491b25e) Signed-off-by: Michael Wood Signed-off-by: Richard Purdie --- 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 241c5d2e0c..667c5dff6c 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); });