From cf7d0418ff2d4aec508c7942f96e9b52a491b25e Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Fri, 27 Mar 2015 15:49:54 +0000 Subject: [PATCH] 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 --- lib/toaster/toastergui/static/js/base.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/toaster/toastergui/static/js/base.js b/lib/toaster/toastergui/static/js/base.js index 241c5d2e0c7..667c5dff6c7 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); }); -- 2.47.3