diff --git a/README.md b/README.md
index 3ca1d7a5..6fcc5f36 100644
--- a/README.md
+++ b/README.md
@@ -1,17 +1,20 @@
-
+
Easy to use, open source, learning management system.
+
+
+
-
+
Show more screenshots
diff --git a/lms/www/batch/learn.js b/lms/www/batch/learn.js
index abbb9ce1..1a6164c0 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");