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");
});
});