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 <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Michael Wood
2015-03-27 15:49:54 +00:00
committed by Richard Purdie
parent fab29bd737
commit 0405ef3816

View File

@@ -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);
});