This commit is contained in:
Ross
2022-06-08 22:17:52 +01:00
parent 43f329a389
commit 411158f093
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -46,6 +46,7 @@ export function getJsonAnswers(exam_details, db) {
*/
export function postAnswers(ans, config, exam_details) {
$("#progress").html("Submitting answers...");
console.debug("postAnswers", ans, config, exam_details)
$.post(config.exam_submit_url, ans, null, "json")
.done((data) => {
+2
View File
@@ -1213,6 +1213,7 @@ async function loadQuestion(n, section = 1, force_reload = false) {
};
db.answers.put(answer);
console.debug("Save ", answer)
saveSession();
updateQuestionListPanel(answer);
});
@@ -1240,6 +1241,7 @@ async function loadQuestion(n, section = 1, force_reload = false) {
ans: evt.target.value,
};
// db.answers.put({aid: [cid, eid, qidn], ans: evt.target.value});
console.debug("Save ", answer)
db.answers.put(answer);
$(