Merge branch 'main' of https://github.com/frappe/lms into assignments-in-classes

This commit is contained in:
Jannat Patel
2023-06-01 12:56:54 +05:30
2 changed files with 13 additions and 3 deletions

View File

@@ -1,17 +1,20 @@
<p align="center">
<a href="https://www.frappelms.com/">
<img src="https://www.frappelms.com/files/flms.svg" alt="Frappe LMS" width="100" height="100">
<img src="https://frappelms.com/files/flms.svg" alt="Frappe LMS" width="100" height="100">
</a>
<p align="center">Easy to use, open source, learning management system.</p>
</p>
<p align="center">
<a href="https://dashboard.cypress.io/projects/vandxn/runs">
<img alt="cypress" src="https://img.shields.io/endpoint?url=https://dashboard.cypress.io/badge/simple/vandxn/main&style=flat&logo=cypress">
</a>
<a href="https://github.com/frappe/lms/blob/main/LICENSE">
<img alt="license" src="https://img.shields.io/badge/license-AGPLv3-blue">
</a>
</p>
<img width="1402" alt="Lesson" src="https://frappelms.com/files/fs-banner71f330.png">
<img width="1402" alt="Lesson" src="https://frappelms.com/files/banner.png">
<details>
<summary>Show more screenshots</summary>

View File

@@ -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");