diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/static/js/importlayer.js')
| -rw-r--r-- | bitbake/lib/toaster/toastergui/static/js/importlayer.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/importlayer.js b/bitbake/lib/toaster/toastergui/static/js/importlayer.js index beb2ede3dc..e1fc5c5187 100644 --- a/bitbake/lib/toaster/toastergui/static/js/importlayer.js +++ b/bitbake/lib/toaster/toastergui/static/js/importlayer.js | |||
| @@ -18,7 +18,7 @@ function importLayerPageInit (ctx) { | |||
| 18 | 18 | ||
| 19 | $("#new-project-button").hide(); | 19 | $("#new-project-button").hide(); |
| 20 | 20 | ||
| 21 | libtoaster.makeTypeahead(layerDepInput, libtoaster.ctx.xhrProjectDataTypeaheadUrl, { type : "layers", project_id: libtoaster.ctx.projectId, include_added: "true" }, function(item){ | 21 | libtoaster.makeTypeahead(layerDepInput, libtoaster.ctx.projectLayersUrl, { include_added: "true" }, function(item){ |
| 22 | currentLayerDepSelection = item; | 22 | currentLayerDepSelection = item; |
| 23 | 23 | ||
| 24 | layerDepBtn.removeAttr("disabled"); | 24 | layerDepBtn.removeAttr("disabled"); |
| @@ -28,7 +28,7 @@ function importLayerPageInit (ctx) { | |||
| 28 | /* We automatically add "openembedded-core" layer for convenience as a | 28 | /* We automatically add "openembedded-core" layer for convenience as a |
| 29 | * dependency as pretty much all layers depend on this one | 29 | * dependency as pretty much all layers depend on this one |
| 30 | */ | 30 | */ |
| 31 | $.getJSON(libtoaster.ctx.xhrProjectDataTypeaheadUrl, { type : "layers", project_id: libtoaster.ctx.projectId, include_added: "true" , value: "openembedded-core" }, function(layer) { | 31 | $.getJSON(libtoaster.ctx.projectLayersUrl, { include_added: "true" , search: "openembedded-core" }, function(layer) { |
| 32 | if (layer.list.length == 1) { | 32 | if (layer.list.length == 1) { |
| 33 | currentLayerDepSelection = layer.list[0]; | 33 | currentLayerDepSelection = layer.list[0]; |
| 34 | layerDepBtn.click(); | 34 | layerDepBtn.click(); |
| @@ -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.xhrProjectDataTypeaheadUrl, { type : "layers", project_id: libtoaster.ctx.projectId, include_added: "true" , value: name }, function(layer) { | 214 | $.getJSON(libtoaster.ctx.projectLayersUrl, { include_added: "true" , search: name }, function(layer) { |
| 215 | if (layer.list.length > 0) { | 215 | if (layer.list.length > 0) { |
| 216 | for (var i in layer.list){ | 216 | for (var i in layer.list){ |
| 217 | if (layer.list[i].name == name) { | 217 | if (layer.list[i].name == name) { |
