added a json handler

This commit is contained in:
sm
2013-05-08 23:41:59 -07:00
parent a8ceec3d6b
commit 97f18f1df2
3 changed files with 10 additions and 3 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ function update_board(f, o, s, score) {
function new_problem() {
$.get("/api/v0/problem/", function(d) {
update_board(d["first"], d["operation"], d["second"], d["score"]);
update_board(d["First"], d["Operation"], d["Second"], d["Score"]);
$("#answer").val("");
})
}