bitbake: toaster: New build button allow arbitrary build targets

Target input field needed to support both selecting suggestions and
typing targets, since Toaster doesn't always know about all the targets
provided by the layers in the project.

[YOCTO #7187]

(Bitbake rev: d753db7a18eb9218016e586171d2a08298a0b05d)

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 authored and Richard Purdie committed 2015-02-17 14:38:32 +00:00
1 parent 9819728e12
commit 82d2c502c2
1 file changed
+2
@@ -88,6 +88,8 @@ function basePageInit (ctx) {
if (!newBuildTargetInput.val())
return;
if (!selectedTarget)
selectedTarget = { name: newBuildTargetInput.val() };
/* fire and forget */
libtoaster.startABuild(ctx.projectBuildUrl, ctx.projectId, selectedTarget.name, null, null);
window.location.replace(ctx.projectPageUrl+ctx.projectId);