.
This commit is contained in:
@@ -85,7 +85,7 @@
|
|||||||
<script>
|
<script>
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
|
|
||||||
var $crf_token = $('[name="csrfmiddlewaretoken"]').attr('value');
|
//var $crf_token = $('[name="csrfmiddlewaretoken"]').attr('value');
|
||||||
/* beautify ignore:start */
|
/* beautify ignore:start */
|
||||||
n = {{ question.normal | lower }}
|
n = {{ question.normal | lower }}
|
||||||
/* beautify ignore:end */
|
/* beautify ignore:end */
|
||||||
@@ -94,10 +94,10 @@
|
|||||||
$.ajax({
|
$.ajax({
|
||||||
url: "{% url 'rapid-detail' question.id %}",
|
url: "{% url 'rapid-detail' question.id %}",
|
||||||
type: 'PATCH',
|
type: 'PATCH',
|
||||||
headers:{"X-CSRFToken": $crf_token},
|
headers:{"X-CSRFToken": "{{ csrf_token }}"},
|
||||||
timeout: 3000,
|
timeout: 3000,
|
||||||
data: {
|
data: {
|
||||||
//csrfmiddlewaretoken: "{{ csrf_token }}",
|
csrfmiddlewaretoken: "{{ csrf_token }}",
|
||||||
normal: n,
|
normal: n,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user