From 64b496988f5a94f2b6856908c1df337fb0d78bf0 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 5 Jun 2023 17:00:37 +0100 Subject: [PATCH] update exam question url --- js/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/main.js b/js/main.js index 514b02d..9add7b8 100644 --- a/js/main.js +++ b/js/main.js @@ -640,6 +640,7 @@ function loadPacketFromAjax(path, eid, exam_json_id) { function ajaxRequestionPacket(force_refresh) { //console.debug("loading packet from " + path); + // TODO: check where path comes from ?????? $("#progress").html(`Requesting packet: ${path}`); let browser_cache = true; @@ -797,7 +798,7 @@ function setUpPacket(data, path) { continue; } - const question_url = `${path}/${n}`; + const question_url = `${path}/question/${n}`; //console.debug("Creating ", question_url, question_number, question_total); //$("#progress").html(`Downloading [${question_number}/${question_total}]`);