From 411158f09342ecdaa10dbdba989d89e475a537f3 Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 8 Jun 2022 22:17:52 +0100 Subject: [PATCH] . --- js/interact.js | 1 + js/main.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/js/interact.js b/js/interact.js index 8718eb9..0ba35dd 100644 --- a/js/interact.js +++ b/js/interact.js @@ -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) => { diff --git a/js/main.js b/js/main.js index c0e1a8b..0e06143 100644 --- a/js/main.js +++ b/js/main.js @@ -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); $(