From 82d2c502c22ffe48e31363a894a98bf6a2cddd12 Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Fri, 6 Feb 2015 19:22:49 +0000 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/static/js/base.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bitbake/lib/toaster/toastergui/static/js/base.js b/bitbake/lib/toaster/toastergui/static/js/base.js index 0302b804fc..777ab432c2 100644 --- a/bitbake/lib/toaster/toastergui/static/js/base.js +++ b/bitbake/lib/toaster/toastergui/static/js/base.js @@ -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); -- cgit v1.2.3-54-g00ecf