summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/static/js
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2015-02-06 19:22:49 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-02-17 14:38:32 +0000
commit82d2c502c22ffe48e31363a894a98bf6a2cddd12 (patch)
tree4a5a19392d55e0523b4554c7bdf6201d49409737 /bitbake/lib/toaster/toastergui/static/js
parent9819728e1210fcf661b557e86f775d1766037856 (diff)
downloadast2050-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.js2
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);
OpenPOWER on IntegriCloud