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/projecttopbar.js | |
parent | 0d76084f5d896e4199e1446e2d6d43190a4fcc3a (diff) | |
download | bitbake-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/projecttopbar.js')
-rw-r--r-- | lib/toaster/toastergui/static/js/projecttopbar.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/toaster/toastergui/static/js/projecttopbar.js b/lib/toaster/toastergui/static/js/projecttopbar.js index 58a32a056..b09f974e4 100644 --- a/lib/toaster/toastergui/static/js/projecttopbar.js +++ b/lib/toaster/toastergui/static/js/projecttopbar.js @@ -82,9 +82,9 @@ function projectTopBarInit(ctx) { selectedTarget = { name: newBuildTargetInput.val() }; /* Fire off the build */ - libtoaster.startABuild(libtoaster.ctx.projectBuildsUrl, - null, selectedTarget.name, function(){ - window.location.replace(libtoaster.ctx.projectBuildsUrl); + libtoaster.startABuild(null, selectedTarget.name, + function(){ + window.location.replace(libtoaster.ctx.projectBuildsUrl); }, null); }); } |