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

This commit is contained in:
Piotr Mitros
2012-05-11 14:02:09 -04:00
parent 924a45fee4
commit 0028b3345e

View File

@@ -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