Add .error callback back in

This commit is contained in:
Vik Paruchuri
2013-05-07 17:33:34 -04:00
parent 2648a19cc2
commit 530ac51c1c

View File

@@ -27,6 +27,7 @@ class @PeerGradingProblemBackend
else
# if this post request fails, the error callback will catch it
$.post(@ajax_url + cmd, data, callback)
.error => callback({success: false, error: "Error occured while performing this operation"})
mock: (cmd, data) ->
if cmd == 'is_student_calibrated'