Commit 98f80c36 by Diana Huang

Fix Javascript bugs that arose during refactoring.

parent 8f6c07fd
...@@ -22,10 +22,11 @@ var submitToPaymentProcessing = function() { ...@@ -22,10 +22,11 @@ var submitToPaymentProcessing = function() {
{ {
contribution = contribution_input.val(); contribution = contribution_input.val();
} }
var course_id = $("input[name='course_id']").val();
var xhr = $.post( var xhr = $.post(
"create_order", "/verify_student/create_order",
{ {
"course_id" : "${course_id}", "course_id" : course_id,
"contribution": contribution "contribution": contribution
}, },
function(data) { function(data) {
......
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