diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/static/js/libtoaster.js')
-rw-r--r-- | bitbake/lib/toaster/toastergui/static/js/libtoaster.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js index 2a9a790693..b1038cf618 100644 --- a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js +++ b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js | |||
@@ -170,10 +170,10 @@ var libtoaster = (function (){ | |||
170 | }); | 170 | }); |
171 | } | 171 | } |
172 | 172 | ||
173 | function _getLayerDepsForProject(projectId, layerId, onSuccess, onFail){ | 173 | function _getLayerDepsForProject(url, onSuccess, onFail){ |
174 | /* Check for dependencies not in the current project */ | 174 | /* Check for dependencies not in the current project */ |
175 | $.getJSON(libtoaster.ctx.projectLayersUrl, | 175 | $.getJSON(url, |
176 | { format: 'json', search: layerId }, | 176 | { format: 'json' }, |
177 | function(data) { | 177 | function(data) { |
178 | if (data.error != "ok") { | 178 | if (data.error != "ok") { |
179 | console.log(data.error); | 179 | console.log(data.error); |
@@ -225,8 +225,7 @@ var libtoaster = (function (){ | |||
225 | function _addRmLayer(layerObj, add, doneCb){ | 225 | function _addRmLayer(layerObj, add, doneCb){ |
226 | if (add === true) { | 226 | if (add === true) { |
227 | /* If adding get the deps for this layer */ | 227 | /* If adding get the deps for this layer */ |
228 | libtoaster.getLayerDepsForProject(libtoaster.ctx.projectId, | 228 | libtoaster.getLayerDepsForProject(layerObj.url, |
229 | layerObj.id, | ||
230 | function (layers) { | 229 | function (layers) { |
231 | 230 | ||
232 | /* got result for dependencies */ | 231 | /* got result for dependencies */ |