diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/static/js/importlayer.js')
-rw-r--r-- | bitbake/lib/toaster/toastergui/static/js/importlayer.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/importlayer.js b/bitbake/lib/toaster/toastergui/static/js/importlayer.js index e1fc5c5187..e9d7ae8ef2 100644 --- a/bitbake/lib/toaster/toastergui/static/js/importlayer.js +++ b/bitbake/lib/toaster/toastergui/static/js/importlayer.js | |||
@@ -48,7 +48,7 @@ function importLayerPageInit (ctx) { | |||
48 | newLayerDep.children("span").tooltip(); | 48 | newLayerDep.children("span").tooltip(); |
49 | 49 | ||
50 | var link = newLayerDep.children("a"); | 50 | var link = newLayerDep.children("a"); |
51 | link.attr("href", ctx.layerDetailsUrl+String(currentLayerDepSelection.id)); | 51 | link.attr("href", currentLayerDepSelection.layerDetailsUrl); |
52 | link.text(currentLayerDepSelection.name); | 52 | link.text(currentLayerDepSelection.name); |
53 | link.tooltip({title: currentLayerDepSelection.tooltip, placement: "right"}); | 53 | link.tooltip({title: currentLayerDepSelection.tooltip, placement: "right"}); |
54 | 54 | ||
@@ -63,11 +63,11 @@ function importLayerPageInit (ctx) { | |||
63 | 63 | ||
64 | $("#layer-deps-list").append(newLayerDep); | 64 | $("#layer-deps-list").append(newLayerDep); |
65 | 65 | ||
66 | libtoaster.getLayerDepsForProject(libtoaster.ctx.projectId, currentLayerDepSelection.id, function (data){ | 66 | libtoaster.getLayerDepsForProject(currentLayerDepSelection.layerDetailsUrl, function (data){ |
67 | /* These are the dependencies of the layer added as a dependency */ | 67 | /* These are the dependencies of the layer added as a dependency */ |
68 | if (data.list.length > 0) { | 68 | if (data.list.length > 0) { |
69 | currentLayerDepSelection.url = ctx.layerDetailsUrl+currentLayerDepSelection.id; | 69 | currentLayerDepSelection.url = currentLayerDepSelection.layerDetailsUrl; |
70 | layerDeps[currentLayerDepSelection.id].deps = data.list | 70 | layerDeps[currentLayerDepSelection.id].deps = data.list; |
71 | } | 71 | } |
72 | 72 | ||
73 | /* Clear the current selection */ | 73 | /* Clear the current selection */ |