summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/toaster/toastergui/static/js/projectpage.js22
1 files changed, 13 insertions, 9 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/projectpage.js b/bitbake/lib/toaster/toastergui/static/js/projectpage.js
index ae08d9a857..4a482d78ca 100644
--- a/bitbake/lib/toaster/toastergui/static/js/projectpage.js
+++ b/bitbake/lib/toaster/toastergui/static/js/projectpage.js
@@ -225,17 +225,21 @@ function projectPageInit(ctx) {
225 225
226 var toBuild = ""; 226 var toBuild = "";
227 freqBuildList.find(":checked").each(function(){ 227 freqBuildList.find(":checked").each(function(){
228 toBuild += $(this).val(); 228 toBuild += $(this).val() + ' ';
229 }); 229 });
230 230
231 libtoaster.startABuild(libtoaster.ctx.projectBuildsUrl, libtoaster.ctx.projectId, toBuild, function(){ 231 toBuild = toBuild.trim();
232 /* Build started */ 232
233 window.location.replace(libtoaster.ctx.projectBuildsUrl); 233 libtoaster.startABuild(libtoaster.ctx.projectBuildsUrl,
234 }, 234 libtoaster.ctx.projectId,
235 function(){ 235 toBuild,
236 /* Build start failed */ 236 function(){
237 /* [YOCTO #7995] */ 237 /* Build request started */
238 window.location.replace(libtoaster.ctx.projectBuildsUrl); 238 window.location.replace(libtoaster.ctx.projectBuildsUrl);
239 },
240 function(){
241 /* Build request failed */
242 console.warn("Build request failed to be created");
239 }); 243 });
240 }); 244 });
241 245