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/lib/toaster/toastergui/static/js | |
parent | 9819728e1210fcf661b557e86f775d1766037856 (diff) | |
download | ast2050-yocto-poky-82d2c502c22ffe48e31363a894a98bf6a2cddd12.zip ast2050-yocto-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/lib/toaster/toastergui/static/js')
-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 0302b80..777ab43 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); |