From 0028b3345edc78547577b5b11cc647cbb24ff758 Mon Sep 17 00:00:00 2001 From: Piotr Mitros Date: Fri, 11 May 2012 14:02:09 -0400 Subject: [PATCH] jsonify in postJSON from multiple choice did -- indeed -- break things. Removed. --- static/js/video_player.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/video_player.js b/static/js/video_player.js index b03d0f42af..5b3b9377a9 100644 --- a/static/js/video_player.js +++ b/static/js/video_player.js @@ -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