Commit 00bc8dee by Vik Paruchuri

Minor work on errors shown within the JS

parent 8b12f266
...@@ -41,7 +41,7 @@ class OpenEnded ...@@ -41,7 +41,7 @@ class OpenEnded
post: (cmd, data, callback) -> post: (cmd, data, callback) ->
# if this post request fails, the error callback will catch it # if this post request fails, the error callback will catch it
$.post(@ajax_url + cmd, data, callback) $.post(@ajax_url + cmd, data, callback)
.error => callback({success: false, error: "Error occured while performing this operation"}) .error => callback({success: false, error: "Error occured while performing javascript ajax post."})
after_action_wrapper: (target, action_type) -> after_action_wrapper: (target, action_type) ->
tr_parent = target.parent().parent() tr_parent = target.parent().parent()
......
...@@ -143,7 +143,7 @@ The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for t ...@@ -143,7 +143,7 @@ The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for t
else else
# TODO: replace with postWithPrefix when that's loaded # TODO: replace with postWithPrefix when that's loaded
$.post(@ajax_url + cmd, data, callback) $.post(@ajax_url + cmd, data, callback)
.error => callback({success: false, error: "Error occured while performing this operation"}) .error => callback({success: false, error: "Error occured while performing javascript AJAX post."})
class @StaffGrading class @StaffGrading
......
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