From: Michael Wood Date: Fri, 27 Mar 2015 15:49:54 +0000 (+0000) Subject: bitbake: toaster: BuildButton target input allow building targets with tasks X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0405ef3816d2e3c965d6eb5f25067f53a99c6d2f;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 --- diff --git a/bitbake/lib/toaster/toastergui/static/js/base.js b/bitbake/lib/toaster/toastergui/static/js/base.js index 241c5d2e0c7..667c5dff6c7 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); });