aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2015-03-27 15:49:54 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-04-17 11:53:34 +0100
commitcf7d0418ff2d4aec508c7942f96e9b52a491b25e (patch)
tree16450b3f3dfad8d8171fd8f961add528d54abf39 /lib
parent8652fbaf5e8c56d9d28b7da57432f37313a19b4a (diff)
downloadbitbake-contrib-cf7d0418ff2d4aec508c7942f96e9b52a491b25e.tar.gz
toaster: BuildButton target input allow building targets with tasks
Allow the input for targets to contain tasks in the form target:task [YOCTO #7501] Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/toaster/toastergui/static/js/base.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/toaster/toastergui/static/js/base.js b/lib/toaster/toastergui/static/js/base.js
index 241c5d2e0..667c5dff6 100644
--- a/lib/toaster/toastergui/static/js/base.js
+++ b/lib/toaster/toastergui/static/js/base.js
@@ -88,10 +88,9 @@ function basePageInit (ctx) {
if (!newBuildTargetInput.val())
return;
- if (!selectedTarget)
- selectedTarget = { name: newBuildTargetInput.val() };
+ var selectedTargetName = newBuildTargetInput.val();
/* fire and forget */
- libtoaster.startABuild(ctx.projectBuildUrl, ctx.projectId, selectedTarget.name, null, null);
+ libtoaster.startABuild(ctx.projectBuildUrl, ctx.projectId, selectedTargetName, null, null);
window.location.replace(ctx.projectPageUrl+ctx.projectId);
});