From 59829a897cbdcd7e9d9b22d866cf32559fb9104c Mon Sep 17 00:00:00 2001 From: Diana Huang Date: Tue, 11 Dec 2012 18:09:25 -0500 Subject: [PATCH] Add error message when encountering an error posting back without a proper error response object --- lms/static/coffee/src/staff_grading/staff_grading.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/lms/static/coffee/src/staff_grading/staff_grading.coffee b/lms/static/coffee/src/staff_grading/staff_grading.coffee index cbecea4694..7039fd1358 100644 --- a/lms/static/coffee/src/staff_grading/staff_grading.coffee +++ b/lms/static/coffee/src/staff_grading/staff_grading.coffee @@ -112,6 +112,7 @@ The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for t else # TODO: replace with postWithPrefix when that's loaded $.post(@ajax_url + cmd, data, callback) + .error => callback({success: false, error: "Error occured while performing this operation"}) class StaffGrading