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) {
$.ajax({type:'POST',
url: url,
dataType: 'json',
data: JSON.stringify(data),
data: data,
success: callback,
headers : {'X-CSRFToken':getCookie('csrftoken')}
});
......@@ -52,7 +52,7 @@ function postJSONAsync(url, data, callback) {
$.ajax({type:'POST',
url: url,
dataType: 'json',
data: JSON.stringify(data),
data: data,
success: callback,
headers : {'X-CSRFToken':getCookie('csrftoken')},
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