toaster: projectpage Make sure build targets are space separated
PATCH 1/1 toaster: projectpage Make sure build targets are space separated
From: Michael Wood <[email protected]>
Make sure the build targets are space separated when building multiple targets. Also fix error path now that YOCTO #7995 is resolved.
[YOCTO #8450]
Signed-off-by Michael Wood <[email protected]>
Signed-off-by Elliot Smith <[email protected]>
--- .../toaster/toastergui/static/js/projectpage.js | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-)
bitbake/lib/toaster/toastergui/static/js/projectpage.js +13 -9
@@ -225,17 +225,21 @@ function projectPageInit(ctx) { var toBuild = ""; freqBuildList.find(":checked").each(function(){ - toBuild += $(this).val(); + toBuild += $(this).val() + ' '; }); - libtoaster.startABuild(libtoaster.ctx.projectBuildsUrl, libtoaster.ctx.projectId, toBuild, function(){ - /* Build started */ - window.location.replace(libtoaster.ctx.projectBuildsUrl); - }, - function(){ - /* Build start failed */ - /* [YOCTO #7995] */ - window.location.replace(libtoaster.ctx.projectBuildsUrl); + toBuild = toBuild.trim(); + + libtoaster.startABuild(libtoaster.ctx.projectBuildsUrl, + libtoaster.ctx.projectId, + toBuild, + function(){ + /* Build request started */ + window.location.replace(libtoaster.ctx.projectBuildsUrl); + }, + function(){ + /* Build request failed */ + console.warn("Build request failed to be created"); }); });
Signature · 12 lines
1.9.3 --------------------------------------------------------------------- Intel Corporation (UK) Limited Registered No. 1134945 (England) Registered Office: Pipers Way, Swindon SN3 1RJ VAT No: 860 2173 47 This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.