diff options
author | Michael Wood <michael.g.wood@intel.com> | 2015-02-06 19:22:49 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-02-17 14:38:32 +0000 |
commit | 82d2c502c22ffe48e31363a894a98bf6a2cddd12 (patch) | |
tree | 4a5a19392d55e0523b4554c7bdf6201d49409737 /bitbake | |
parent | 9819728e1210fcf661b557e86f775d1766037856 (diff) | |
download | poky-82d2c502c22ffe48e31363a894a98bf6a2cddd12.tar.gz |
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>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/toaster/toastergui/static/js/base.js | 2 |
1 files changed, 2 insertions, 0 deletions
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) { | |||
88 | if (!newBuildTargetInput.val()) | 88 | if (!newBuildTargetInput.val()) |
89 | return; | 89 | return; |
90 | 90 | ||
91 | if (!selectedTarget) | ||
92 | selectedTarget = { name: newBuildTargetInput.val() }; | ||
91 | /* fire and forget */ | 93 | /* fire and forget */ |
92 | libtoaster.startABuild(ctx.projectBuildUrl, ctx.projectId, selectedTarget.name, null, null); | 94 | libtoaster.startABuild(ctx.projectBuildUrl, ctx.projectId, selectedTarget.name, null, null); |
93 | window.location.replace(ctx.projectPageUrl+ctx.projectId); | 95 | window.location.replace(ctx.projectPageUrl+ctx.projectId); |