From 6a783e540b445eea70c453b3ef563ec0fdfbdc92 Mon Sep 17 00:00:00 2001
From: Jannat Patel <31363128+pateljannat@users.noreply.github.com>
Date: Wed, 24 May 2023 22:39:56 +0530
Subject: [PATCH 1/3] docs: updated readme logo
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 3ca1d7a5..00dcf86d 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
-
+
Easy to use, open source, learning management system.
From 36b3b1d086ce8f38f043e099b1c086c88ec2b3bd Mon Sep 17 00:00:00 2001
From: Jannat Patel <31363128+pateljannat@users.noreply.github.com>
Date: Wed, 24 May 2023 22:46:21 +0530
Subject: [PATCH 2/3] Update README.md
---
README.md | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 00dcf86d..6fcc5f36 100644
--- a/README.md
+++ b/README.md
@@ -6,12 +6,15 @@
+
+
+
-
+
Show more screenshots
From 2afa14d68e0fda12c1bf799c5b24491d1ad98fc0 Mon Sep 17 00:00:00 2001
From: Jannat Patel
Date: Wed, 31 May 2023 11:13:39 +0530
Subject: [PATCH 3/3] fix: possible answer check
---
lms/www/batch/learn.js | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/lms/www/batch/learn.js b/lms/www/batch/learn.js
index d70825e1..873558ef 100644
--- a/lms/www/batch/learn.js
+++ b/lms/www/batch/learn.js
@@ -96,7 +96,7 @@ const save_current_lesson = () => {
};
const enable_check = (e) => {
- if ($(".option:checked").length) {
+ if ($(".option:checked").length || $(".possibility").val().trim()) {
$("#check").removeAttr("disabled");
$(".custom-checkbox").removeClass("active-option");
$(".option:checked")
@@ -190,8 +190,15 @@ const try_quiz_again = (e) => {
const check_answer = (e = undefined) => {
e && e.preventDefault();
+
+ let answer = $(".active-question textarea");
+ if (answer.length && !answer.val().trim()) {
+ frappe.throw(__("Please enter your answer"));
+ }
+
clearInterval(self.timer);
$(".timer").addClass("hide");
+
let total_questions = $(".question").length;
let current_index = $(".active-question").attr("data-qt-index");