diff options
-rw-r--r-- | bitbake/lib/toaster/toastergui/static/js/base.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/base.js b/bitbake/lib/toaster/toastergui/static/js/base.js index 241c5d2e0c..667c5dff6c 100644 --- a/bitbake/lib/toaster/toastergui/static/js/base.js +++ b/bitbake/lib/toaster/toastergui/static/js/base.js | |||
@@ -88,10 +88,9 @@ function basePageInit (ctx) { | |||
88 | if (!newBuildTargetInput.val()) | 88 | if (!newBuildTargetInput.val()) |
89 | return; | 89 | return; |
90 | 90 | ||
91 | if (!selectedTarget) | 91 | var selectedTargetName = newBuildTargetInput.val(); |
92 | selectedTarget = { name: newBuildTargetInput.val() }; | ||
93 | /* fire and forget */ | 92 | /* fire and forget */ |
94 | libtoaster.startABuild(ctx.projectBuildUrl, ctx.projectId, selectedTarget.name, null, null); | 93 | libtoaster.startABuild(ctx.projectBuildUrl, ctx.projectId, selectedTargetName, null, null); |
95 | window.location.replace(ctx.projectPageUrl+ctx.projectId); | 94 | window.location.replace(ctx.projectPageUrl+ctx.projectId); |
96 | }); | 95 | }); |
97 | 96 | ||