.
This commit is contained in:
+1
-1
@@ -133,7 +133,7 @@ function submissionError(data, answer_json, exam_details) {
|
|||||||
|
|
||||||
if ($("#submit-error-overlay").length < 1) {
|
if ($("#submit-error-overlay").length < 1) {
|
||||||
$("body").append(
|
$("body").append(
|
||||||
`<div id='submit-error-overlay'><span style='color: white'><p>An error has occured when submit your answers. A copy of your answers are displayed below, you may wish to <a id="save-failed-answers" href="#">save a copy</a>. Please try submitting again or refresh this page to continue.</p><p>${html.get(0).innerHTML}</p><p>${JSON.stringify(
|
`<div id='submit-error-overlay'><span style='color: white'><p>An error has occurred when submitting your answers. A copy of your answers are displayed below, you may wish to <a id="save-failed-answers" href="#">save a copy</a>. Please try submitting again or refresh this page to continue (answers will be saved locally in the browser unless you clear local storage).</p><p>${html.get(0).innerHTML}</p><p>${JSON.stringify(
|
||||||
answer_json
|
answer_json
|
||||||
)}</p></span></div>`
|
)}</p></span></div>`
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user