diff options
author | Michael Wood <michael.g.wood@intel.com> | 2016-04-06 17:46:32 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-04-06 23:00:10 +0100 |
commit | 61a21d96abab113cbd13376cdb8b08a426b50538 (patch) | |
tree | 51d2e802f699f2c2ccc713dffc00ead929546325 /lib/toaster/toastergui/static/js/customrecipe.js | |
parent | 0d76084f5d896e4199e1446e2d6d43190a4fcc3a (diff) | |
download | openembedded-core-contrib-61a21d96abab113cbd13376cdb8b08a426b50538.tar.gz |
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
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/toaster/toastergui/static/js/customrecipe.js')
-rw-r--r-- | lib/toaster/toastergui/static/js/customrecipe.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/toaster/toastergui/static/js/customrecipe.js b/lib/toaster/toastergui/static/js/customrecipe.js index f1b8afbf2f..a31c26834e 100644 --- a/lib/toaster/toastergui/static/js/customrecipe.js +++ b/lib/toaster/toastergui/static/js/customrecipe.js @@ -267,9 +267,7 @@ function customRecipePageInit(ctx) { /* Trigger a build of your custom image */ $(".build-custom-image").click(function(){ - libtoaster.startABuild(libtoaster.ctx.projectBuildsUrl, - libtoaster.ctx.projectId, - ctx.recipe.name, + libtoaster.startABuild(null, ctx.recipe.name, function(){ window.location.replace(libtoaster.ctx.projectBuildsUrl); }); |