diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/static/js/libtoaster.js')
-rw-r--r-- | bitbake/lib/toaster/toastergui/static/js/libtoaster.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js index 72fb0a93f5..87910299a5 100644 --- a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js +++ b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js | |||
@@ -120,11 +120,11 @@ var libtoaster = (function (){ | |||
120 | } | 120 | } |
121 | 121 | ||
122 | /* Get a project's configuration info */ | 122 | /* Get a project's configuration info */ |
123 | function _getProjectInfo(url, projectId, onsuccess, onfail){ | 123 | function _getProjectInfo(url, onsuccess, onfail){ |
124 | $.ajax({ | 124 | $.ajax({ |
125 | type: "POST", | 125 | type: "GET", |
126 | data : { format: "json" }, | ||
126 | url: url, | 127 | url: url, |
127 | data: { project_id : projectId }, | ||
128 | headers: { 'X-CSRFToken' : $.cookie('csrftoken')}, | 128 | headers: { 'X-CSRFToken' : $.cookie('csrftoken')}, |
129 | success: function (_data) { | 129 | success: function (_data) { |
130 | if (_data.error !== "ok") { | 130 | if (_data.error !== "ok") { |
@@ -150,7 +150,7 @@ var libtoaster = (function (){ | |||
150 | function _editCurrentProject(data, onSuccess, onFail){ | 150 | function _editCurrentProject(data, onSuccess, onFail){ |
151 | $.ajax({ | 151 | $.ajax({ |
152 | type: "POST", | 152 | type: "POST", |
153 | url: libtoaster.ctx.xhrProjectEditUrl, | 153 | url: libtoaster.ctx.projectPageUrl + "?format=json", |
154 | data: data, | 154 | data: data, |
155 | headers: { 'X-CSRFToken' : $.cookie('csrftoken')}, | 155 | headers: { 'X-CSRFToken' : $.cookie('csrftoken')}, |
156 | success: function (data) { | 156 | success: function (data) { |