.
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -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);
|
||||
|
||||
$(
|
||||
|
||||
Reference in New Issue
Block a user