diff options
Diffstat (limited to 'bitbake/lib/toaster')
-rw-r--r-- | bitbake/lib/toaster/toastergui/static/js/importlayer.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/importlayer.js b/bitbake/lib/toaster/toastergui/static/js/importlayer.js index 30dc28280e..4784c657f5 100644 --- a/bitbake/lib/toaster/toastergui/static/js/importlayer.js +++ b/bitbake/lib/toaster/toastergui/static/js/importlayer.js | |||
@@ -158,6 +158,7 @@ function importLayerPageInit (ctx) { | |||
158 | project_id: libtoaster.ctx.projectId, | 158 | project_id: libtoaster.ctx.projectId, |
159 | layer_deps: layerDepsCsv, | 159 | layer_deps: layerDepsCsv, |
160 | local_source_dir: $('#local-dir-path').val(), | 160 | local_source_dir: $('#local-dir-path').val(), |
161 | add_to_project: true, | ||
161 | }; | 162 | }; |
162 | 163 | ||
163 | if ($('input[name=repo]:checked').val() == "git") { | 164 | if ($('input[name=repo]:checked').val() == "git") { |
@@ -168,9 +169,9 @@ function importLayerPageInit (ctx) { | |||
168 | } | 169 | } |
169 | 170 | ||
170 | $.ajax({ | 171 | $.ajax({ |
171 | type: "POST", | 172 | type: "PUT", |
172 | url: ctx.xhrImportLayerUrl, | 173 | url: ctx.xhrLayerUrl, |
173 | data: layerData, | 174 | data: JSON.stringify(layerData), |
174 | headers: { 'X-CSRFToken' : $.cookie('csrftoken')}, | 175 | headers: { 'X-CSRFToken' : $.cookie('csrftoken')}, |
175 | success: function (data) { | 176 | success: function (data) { |
176 | if (data.error != "ok") { | 177 | if (data.error != "ok") { |