summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/toaster/toastergui/static/js/base.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/base.js b/bitbake/lib/toaster/toastergui/static/js/base.js
index 0302b804fc..777ab432c2 100644
--- a/bitbake/lib/toaster/toastergui/static/js/base.js
+++ b/bitbake/lib/toaster/toastergui/static/js/base.js
@@ -88,6 +88,8 @@ function basePageInit (ctx) {
88 if (!newBuildTargetInput.val()) 88 if (!newBuildTargetInput.val())
89 return; 89 return;
90 90
91 if (!selectedTarget)
92 selectedTarget = { name: newBuildTargetInput.val() };
91 /* fire and forget */ 93 /* fire and forget */
92 libtoaster.startABuild(ctx.projectBuildUrl, ctx.projectId, selectedTarget.name, null, null); 94 libtoaster.startABuild(ctx.projectBuildUrl, ctx.projectId, selectedTarget.name, null, null);
93 window.location.replace(ctx.projectPageUrl+ctx.projectId); 95 window.location.replace(ctx.projectPageUrl+ctx.projectId);