Skip to content
Snippets Groups Projects
Commit ec747e4c authored by Waheed Ahmed's avatar Waheed Ahmed
Browse files

Fix some submission error message related bugs.

During another bug investigation I figured there are some
issues related to showing error messages to learners upon
submission.

PROD-1431
parent c611fac4
Branches
Tags
No related merge requests found
......@@ -591,7 +591,7 @@
);
}
errorHtml = edx.HtmlUtils.interpolateHtml(edx.HtmlUtils.HTML('<ul>{errors}</ul>'), {errors: errorHtml});
this.gentle_alert(errorHtml);
this.gentle_alert(errorHtml.toString());
abortSubmission = fileTooLarge || fileNotSelected || unallowedFileSubmitted || requiredFilesNotSubmitted;
if (abortSubmission) {
window.clearTimeout(timeoutId);
......@@ -615,6 +615,9 @@
that.gentle_alert(response.success);
}
return Logger.log('problem_graded', [that.answers, response.contents], that.id);
},
error: function(response) {
that.gentle_alert(response.responseJSON.success);
}
};
$.ajaxWithPrefix('' + this.url + '/problem_check', settings);
......
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