diff options
author | Michael Wood <michael.g.wood@intel.com> | 2015-11-26 14:54:29 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-12-07 17:01:20 +0000 |
commit | c075bcf5459d782cb89aaf1a39253b334847f34f (patch) | |
tree | c7700ddd271af028b0a009b3d33dd8a8c477f554 /bitbake/lib/toaster/toastergui/static | |
parent | 698c74c373110ed081a7586e21d4a27b8b44c89b (diff) | |
download | poky-c075bcf5459d782cb89aaf1a39253b334847f34f.tar.gz |
bitbake: toaster: projectpage Make sure build targets are space separated
Make sure the build targets are space separated when building multiple
targets. Also fix error path now that YOCTO #7995 is resolved.
[YOCTO #8450]
(Bitbake rev: e9719eb2e8249f0d10b39bfdd4aef563368b5ffd)
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/static')
-rw-r--r-- | bitbake/lib/toaster/toastergui/static/js/projectpage.js | 22 |
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 | ||