diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/static/js/base.js')
| -rw-r--r-- | bitbake/lib/toaster/toastergui/static/js/base.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/base.js b/bitbake/lib/toaster/toastergui/static/js/base.js index 9424b6c328..9c8d01ef5a 100644 --- a/bitbake/lib/toaster/toastergui/static/js/base.js +++ b/bitbake/lib/toaster/toastergui/static/js/base.js | |||
| @@ -29,7 +29,7 @@ function basePageInit (ctx) { | |||
| 29 | if (libtoaster.ctx.projectId == undefined) | 29 | if (libtoaster.ctx.projectId == undefined) |
| 30 | return; | 30 | return; |
| 31 | 31 | ||
| 32 | libtoaster.getProjectInfo(ctx.projectInfoUrl, libtoaster.ctx.projectId, | 32 | libtoaster.getProjectInfo(libtoaster.ctx.projectPageUrl, |
| 33 | function(data){ | 33 | function(data){ |
| 34 | if (data.machine.name == undefined || data.layers.length == 0) { | 34 | if (data.machine.name == undefined || data.layers.length == 0) { |
| 35 | /* we can't build anything with out a machine and some layers */ | 35 | /* we can't build anything with out a machine and some layers */ |
| @@ -102,7 +102,6 @@ function basePageInit (ctx) { | |||
| 102 | /* TBD: do we override even if we already have a context project ?? */ | 102 | /* TBD: do we override even if we already have a context project ?? */ |
| 103 | /* TODO: replace global library context with references to the "selected" project */ | 103 | /* TODO: replace global library context with references to the "selected" project */ |
| 104 | libtoaster.ctx.projectPageUrl = selectedProject.projectPageUrl; | 104 | libtoaster.ctx.projectPageUrl = selectedProject.projectPageUrl; |
| 105 | libtoaster.ctx.xhrProjectEditUrl = selectedProject.xhrProjectEditUrl; | ||
| 106 | libtoaster.ctx.projectName = selectedProject.name; | 105 | libtoaster.ctx.projectName = selectedProject.name; |
| 107 | libtoaster.ctx.projectId = selectedProject.id; | 106 | libtoaster.ctx.projectId = selectedProject.id; |
| 108 | 107 | ||
