Commit 0028b334 by Piotr Mitros

jsonify in postJSON from multiple choice did -- indeed -- break things. Removed.

parent 924a45fe
...@@ -42,7 +42,7 @@ function postJSON(url, data, callback) { ...@@ -42,7 +42,7 @@ function postJSON(url, data, callback) {
$.ajax({type:'POST', $.ajax({type:'POST',
url: url, url: url,
dataType: 'json', dataType: 'json',
data: JSON.stringify(data), data: data,
success: callback, success: callback,
headers : {'X-CSRFToken':getCookie('csrftoken')} headers : {'X-CSRFToken':getCookie('csrftoken')}
}); });
...@@ -52,7 +52,7 @@ function postJSONAsync(url, data, callback) { ...@@ -52,7 +52,7 @@ function postJSONAsync(url, data, callback) {
$.ajax({type:'POST', $.ajax({type:'POST',
url: url, url: url,
dataType: 'json', dataType: 'json',
data: JSON.stringify(data), data: data,
success: callback, success: callback,
headers : {'X-CSRFToken':getCookie('csrftoken')}, headers : {'X-CSRFToken':getCookie('csrftoken')},
async:true async:true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment