summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/static/js/customrecipe.js
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2016-04-06 17:46:32 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-04-06 23:10:29 +0100
commit0db62c54a4b2d89a42028d9263cb3f8a9fe93be0 (patch)
treec8c8789074d1bd2a483bfe4457783a9a38089cf0 /bitbake/lib/toaster/toastergui/static/js/customrecipe.js
parentafab95c649c6e478f462a32e3d9831cb9007b0e4 (diff)
downloadpoky-0db62c54a4b2d89a42028d9263cb3f8a9fe93be0.tar.gz
bitbake: toaster: libtoaster Update implementation of startABuild and cancelABuild
Update the implementation of startABuild and cancelAbuild to reflect changes to the backend api. We now have a dedicated endpoint to make calls into so add this url to libtoaster.ctx and allow passing null in as a url value to indicate that we want to use the current project Also: - Fix some documentation comments - Add the convenience of passing in an array of targets to startABuild (Bitbake rev: 61a21d96abab113cbd13376cdb8b08a426b50538) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/static/js/customrecipe.js')
-rw-r--r--bitbake/lib/toaster/toastergui/static/js/customrecipe.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/customrecipe.js b/bitbake/lib/toaster/toastergui/static/js/customrecipe.js
index f1b8afbf2f..a31c26834e 100644
--- a/bitbake/lib/toaster/toastergui/static/js/customrecipe.js
+++ b/bitbake/lib/toaster/toastergui/static/js/customrecipe.js
@@ -267,9 +267,7 @@ function customRecipePageInit(ctx) {
267 267
268 /* Trigger a build of your custom image */ 268 /* Trigger a build of your custom image */
269 $(".build-custom-image").click(function(){ 269 $(".build-custom-image").click(function(){
270 libtoaster.startABuild(libtoaster.ctx.projectBuildsUrl, 270 libtoaster.startABuild(null, ctx.recipe.name,
271 libtoaster.ctx.projectId,
272 ctx.recipe.name,
273 function(){ 271 function(){
274 window.location.replace(libtoaster.ctx.projectBuildsUrl); 272 window.location.replace(libtoaster.ctx.projectBuildsUrl);
275 }); 273 });