summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/static/js/layerdetails.js
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2015-07-31 15:09:12 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-01 11:26:12 +0100
commit80c1586bbb7f661f37754de5ba637c8d6e2185de (patch)
tree56011e83e1f192a68f4e9014ca266dd6cd76c719 /bitbake/lib/toaster/toastergui/static/js/layerdetails.js
parent258c929973e233f212938ea69eec8f83f3285854 (diff)
downloadpoky-80c1586bbb7f661f37754de5ba637c8d6e2185de.tar.gz
bitbake: toastergui: Add new project page and navigation
This brings in the new project page design and improved navigation. As this also removes the dependency on Angular it also required that the entry points to the project page such as machine-change notifications are also updated. [YOCTO #7329] (Bitbake rev: 6489e6eb5c3b0d59063b6d60521fc33fe563e707) 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.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/layerdetails.js b/bitbake/lib/toaster/toastergui/static/js/layerdetails.js
index 291ed98c34..be6bbcd20f 100644
--- a/bitbake/lib/toaster/toastergui/static/js/layerdetails.js
+++ b/bitbake/lib/toaster/toastergui/static/js/layerdetails.js
@@ -16,14 +16,15 @@ function layerDetailsPageInit (ctx) {
16 }); 16 });
17 17
18 $(".breadcrumb li:first a").click(function(e){ 18 $(".breadcrumb li:first a").click(function(e){
19 e.preventDefault();
19 /* By default this link goes to the project configuration page. However 20 /* 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 * if we have some builds we go there instead of the default href
21 */ 22 */
22 libtoaster.getProjectInfo(libtoaster.ctx.projectPageUrl, function(prjInfo){ 23 libtoaster.getProjectInfo(libtoaster.ctx.projectPageUrl, function(prjInfo){
23 if (prjInfo.builds && prjInfo.builds.length > 0) { 24 if (prjInfo.builds && prjInfo.builds.length > 0) {
24 window.location.replace(libtoaster.ctx.projectBuildsUrl); 25 window.location.replace(libtoaster.ctx.projectBuildsUrl);
25 e.preventDefault(); 26 } else {
26 return; 27 window.location.replace(libtoaster.ctx.projectPageUrl);
27 } 28 }
28 }); 29 });
29 }); 30 });