diff options
4 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/layers.html b/bitbake/lib/toaster/toastergui/templates/layers.html index 5cfda5b526..864e15683b 100644 --- a/bitbake/lib/toaster/toastergui/templates/layers.html +++ b/bitbake/lib/toaster/toastergui/templates/layers.html | |||
| @@ -117,6 +117,7 @@ | |||
| 117 | 117 | ||
| 118 | var tooltipUpdateText; | 118 | var tooltipUpdateText; |
| 119 | 119 | ||
| 120 | /* ensure csrf cookie exists {% csrf_token %} */ | ||
| 120 | function _makeXHREditCall(data, onsuccess, onfail) { | 121 | function _makeXHREditCall(data, onsuccess, onfail) { |
| 121 | $.ajax( { | 122 | $.ajax( { |
| 122 | type: "POST", | 123 | type: "POST", |
diff --git a/bitbake/lib/toaster/toastergui/templates/managed_mrb_section.html b/bitbake/lib/toaster/toastergui/templates/managed_mrb_section.html index 08bb05d97b..d6e32f89ce 100644 --- a/bitbake/lib/toaster/toastergui/templates/managed_mrb_section.html +++ b/bitbake/lib/toaster/toastergui/templates/managed_mrb_section.html | |||
| @@ -156,6 +156,7 @@ | |||
| 156 | 156 | ||
| 157 | <script> | 157 | <script> |
| 158 | 158 | ||
| 159 | /* ensure csrf cookie exists {% csrf_token %} */ | ||
| 159 | function _makeXHRBuildCall(url, data, onsuccess, onfail) { | 160 | function _makeXHRBuildCall(url, data, onsuccess, onfail) { |
| 160 | $.ajax( { | 161 | $.ajax( { |
| 161 | type: "POST", | 162 | type: "POST", |
diff --git a/bitbake/lib/toaster/toastergui/templates/projectconf.html b/bitbake/lib/toaster/toastergui/templates/projectconf.html index 9cacce42d8..dde8a115c2 100644 --- a/bitbake/lib/toaster/toastergui/templates/projectconf.html +++ b/bitbake/lib/toaster/toastergui/templates/projectconf.html | |||
| @@ -429,6 +429,7 @@ | |||
| 429 | // re-assert the event handlers | 429 | // re-assert the event handlers |
| 430 | } | 430 | } |
| 431 | 431 | ||
| 432 | /* ensure cookie exists {% csrf_token %} */ | ||
| 432 | function postEditAjaxRequest(reqdata) { | 433 | function postEditAjaxRequest(reqdata) { |
| 433 | var ajax = $.ajax({ | 434 | var ajax = $.ajax({ |
| 434 | type:"POST", | 435 | type:"POST", |
diff --git a/bitbake/lib/toaster/toastergui/templates/targets.html b/bitbake/lib/toaster/toastergui/templates/targets.html index 234159a687..690c6a5d36 100644 --- a/bitbake/lib/toaster/toastergui/templates/targets.html +++ b/bitbake/lib/toaster/toastergui/templates/targets.html | |||
| @@ -120,6 +120,7 @@ | |||
| 120 | 120 | ||
| 121 | var tooltipUpdateText; | 121 | var tooltipUpdateText; |
| 122 | 122 | ||
| 123 | /* ensure csrf cookie exists {% csrf_token %} */ | ||
| 123 | function _makeXHREditCall(data, onsuccess, onfail) { | 124 | function _makeXHREditCall(data, onsuccess, onfail) { |
| 124 | $.ajax( { | 125 | $.ajax( { |
| 125 | type: "POST", | 126 | type: "POST", |
