diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/static/js/importlayer.js')
-rw-r--r-- | bitbake/lib/toaster/toastergui/static/js/importlayer.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/importlayer.js b/bitbake/lib/toaster/toastergui/static/js/importlayer.js index 50bc4ddd7c..2fadbc0978 100644 --- a/bitbake/lib/toaster/toastergui/static/js/importlayer.js +++ b/bitbake/lib/toaster/toastergui/static/js/importlayer.js | |||
@@ -16,7 +16,7 @@ function importLayerPageInit (ctx) { | |||
16 | var currentLayerDepSelection; | 16 | var currentLayerDepSelection; |
17 | var validLayerName = /^(\w|-)+$/; | 17 | var validLayerName = /^(\w|-)+$/; |
18 | 18 | ||
19 | libtoaster.makeTypeahead(layerDepInput, libtoaster.ctx.projectLayersUrl, { include_added: "true" }, function(item){ | 19 | libtoaster.makeTypeahead(layerDepInput, libtoaster.ctx.layersTypeAheadUrl, { include_added: "true" }, function(item){ |
20 | currentLayerDepSelection = item; | 20 | currentLayerDepSelection = item; |
21 | 21 | ||
22 | layerDepBtn.removeAttr("disabled"); | 22 | layerDepBtn.removeAttr("disabled"); |
@@ -26,11 +26,11 @@ function importLayerPageInit (ctx) { | |||
26 | /* We automatically add "openembedded-core" layer for convenience as a | 26 | /* We automatically add "openembedded-core" layer for convenience as a |
27 | * dependency as pretty much all layers depend on this one | 27 | * dependency as pretty much all layers depend on this one |
28 | */ | 28 | */ |
29 | $.getJSON(libtoaster.ctx.projectLayersUrl, | 29 | $.getJSON(libtoaster.ctx.layersTypeAheadUrl, |
30 | { include_added: "true" , search: "openembedded-core", format: "json" }, | 30 | { include_added: "true" , search: "openembedded-core" }, |
31 | function(layer) { | 31 | function(layer) { |
32 | if (layer.rows.length > 0) { | 32 | if (layer.results.length > 0) { |
33 | currentLayerDepSelection = layer.rows[0]; | 33 | currentLayerDepSelection = layer.results[0]; |
34 | layerDepBtn.click(); | 34 | layerDepBtn.click(); |
35 | } | 35 | } |
36 | }); | 36 | }); |
@@ -211,7 +211,7 @@ function importLayerPageInit (ctx) { | |||
211 | var name = $(this).val(); | 211 | var name = $(this).val(); |
212 | 212 | ||
213 | /* Check if the layer name exists */ | 213 | /* Check if the layer name exists */ |
214 | $.getJSON(libtoaster.ctx.projectLayersUrl, | 214 | $.getJSON(libtoaster.ctx.layersTypeAheadUrl, |
215 | { include_added: "true" , search: name, format: "json" }, | 215 | { include_added: "true" , search: name, format: "json" }, |
216 | function(layer) { | 216 | function(layer) { |
217 | if (layer.rows.length > 0) { | 217 | if (layer.rows.length > 0) { |