diff options
author | 2016-04-06 17:46:32 +0100 | |
---|---|---|
committer | 2016-04-06 23:10:29 +0100 | |
commit | 0db62c54a4b2d89a42028d9263cb3f8a9fe93be0 (patch) | |
tree | c8c8789074d1bd2a483bfe4457783a9a38089cf0 /bitbake/lib/toaster/toastergui/static/js/layerBtn.js | |
parent | afab95c649c6e478f462a32e3d9831cb9007b0e4 (diff) | |
download | openembedded-core-contrib-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/layerBtn.js')
-rw-r--r-- | bitbake/lib/toaster/toastergui/static/js/layerBtn.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/layerBtn.js b/bitbake/lib/toaster/toastergui/static/js/layerBtn.js index b2666ab92c..aa43284396 100644 --- a/bitbake/lib/toaster/toastergui/static/js/layerBtn.js +++ b/bitbake/lib/toaster/toastergui/static/js/layerBtn.js @@ -60,8 +60,7 @@ function layerBtnsInit() { e.preventDefault(); var recipe = $(this).data('recipe-name'); - libtoaster.startABuild(libtoaster.ctx.projectBuildsUrl, - libtoaster.ctx.projectId, recipe, + libtoaster.startABuild(null, recipe, function(){ /* Success */ window.location.replace(libtoaster.ctx.projectBuildsUrl); |