diff options
author | Michael Wood <michael.g.wood@intel.com> | 2015-07-31 15:09:03 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-08-01 11:26:11 +0100 |
commit | b06a633f25aec303e867c6109fb97d63d9ee1f73 (patch) | |
tree | e8cb117fa87f50114d63fa1104804abeb0708433 /bitbake/lib/toaster/toastergui/static/js/layerdetails.js | |
parent | 3d3a2dbf5fc10773bb18ab7fb00f3db254139f47 (diff) | |
download | poky-b06a633f25aec303e867c6109fb97d63d9ee1f73.tar.gz |
bitbake: toastergui: Implement new project navigation
Change the structure of the project page to include a navigation menu
and top tab navigation. Remove old breadcrumb method.
[YOCTO #7329]
(Bitbake rev: 66fa0dd988e01ec79e74be7a5697eaa3b4f017d8)
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/static/js/layerdetails.js')
-rw-r--r-- | bitbake/lib/toaster/toastergui/static/js/layerdetails.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/layerdetails.js b/bitbake/lib/toaster/toastergui/static/js/layerdetails.js index 0accd971d4..e522373b3f 100644 --- a/bitbake/lib/toaster/toastergui/static/js/layerdetails.js +++ b/bitbake/lib/toaster/toastergui/static/js/layerdetails.js | |||
@@ -15,6 +15,19 @@ function layerDetailsPageInit (ctx) { | |||
15 | layerDepBtn.removeAttr("disabled"); | 15 | layerDepBtn.removeAttr("disabled"); |
16 | }); | 16 | }); |
17 | 17 | ||
18 | $(".breadcrumb li:first a").click(function(e){ | ||
19 | /* By default this link goes to the project configuration page. However | ||
20 | * if we have some builds we go there instead of the default href | ||
21 | */ | ||
22 | libtoaster.getProjectInfo(libtoaster.ctx.projectPageUrl, function(prjInfo){ | ||
23 | if (prjInfo.builds && prjInfo.builds.length > 0) { | ||
24 | window.location.replace(libtoaster.ctx.projectBuildsUrl); | ||
25 | e.preventDefault(); | ||
26 | return; | ||
27 | } | ||
28 | }); | ||
29 | }); | ||
30 | |||
18 | function addRemoveDep(depLayerId, add, doneCb) { | 31 | function addRemoveDep(depLayerId, add, doneCb) { |
19 | var data = { layer_version_id : ctx.layerVersion.id }; | 32 | var data = { layer_version_id : ctx.layerVersion.id }; |
20 | if (add) | 33 | if (add) |