diff --git a/lms/www/batch/quiz.js b/lms/www/batch/quiz.js index 140d9fdf..f1b2fe75 100644 --- a/lms/www/batch/quiz.js +++ b/lms/www/batch/quiz.js @@ -22,10 +22,10 @@ frappe.ready(() => { const add_question = () => { - if ($(".new-quiz-card").length) { + /* if ($(".new-quiz-card").length) { scroll_to_question_container(); return; - } + } */ let add_after = $(".quiz-card").length ? $(".quiz-card:last") : $("#quiz-title"); let question_template = `
diff --git a/lms/www/batch/quiz.py b/lms/www/batch/quiz.py index 1dfdabed..500b6fb4 100644 --- a/lms/www/batch/quiz.py +++ b/lms/www/batch/quiz.py @@ -3,6 +3,7 @@ from frappe.utils import cstr def get_context(context): + context.no_cache = 1 quizname = frappe.form_dict["quizname"] if quizname == "new-quiz": context.quiz = frappe._dict() diff --git a/lms/www/batch/quiz_list.py b/lms/www/batch/quiz_list.py index 5dbdca66..1b7a653f 100644 --- a/lms/www/batch/quiz_list.py +++ b/lms/www/batch/quiz_list.py @@ -1,4 +1,5 @@ import frappe def get_context(context): + context.no_cache = 1 context.quiz_list = frappe.get_all("LMS Quiz", {"owner": frappe.session.user}, ["name", "title"])